]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove uid-based path_walk()
authorGreg Farnum <gfarnum@redhat.com>
Wed, 3 Aug 2016 05:53:05 +0000 (22:53 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 21 Sep 2016 23:33:53 +0000 (16:33 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/client/Client.h

index a146d88aafed2a196ddfdcb5f974f94d2c08142e..d193fd207394c2763f955f8d2e67b21dfdcc1939 100644 (file)
@@ -538,14 +538,6 @@ protected:
   InodeRef cwd;
   int path_walk(const filepath& fp, InodeRef *end, const UserPerm& perms,
                bool followsym=true);
-  int path_walk(const filepath& fp, InodeRef *end, bool followsym=true,
-               int uid=-1, int gid=-1) {
-    if (uid < 0) uid = get_uid();
-    if (gid < 0) gid = get_gid();
-    UserPerm perms(uid, gid);
-    return path_walk(fp, end, perms, followsym);
-  }
-
   int fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0);
   int fill_stat(InodeRef& in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0) {
     return fill_stat(in.get(), st, dirstat, rstat);