]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove init_groups
authorJeff Layton <jlayton@redhat.com>
Mon, 2 Apr 2018 10:37:46 +0000 (06:37 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 2 Apr 2018 17:14:35 +0000 (13:14 -0400)
Nothing calls it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h

index 281f9d33548a9a63b04698a32a611a9fe03224a6..5b4305d0cde04f24582845abcaa346e9ac1f6679 100644 (file)
@@ -13911,13 +13911,6 @@ void Client::handle_conf_change(const struct md_config_t *conf,
   }
 }
 
-void Client::init_groups(UserPerm *perms)
-{
-  gid_t *sgids;
-  int count = _getgrouplist(&sgids, perms->uid(), perms->gid());
-  perms->init_gids(sgids, count);
-}
-
 void intrusive_ptr_add_ref(Inode *in)
 {
   in->get();
index e578add5d1f28edf0d6f36f44a8f62cd66619f8d..eaea2068e4f58c923e86581e4de6ddfb58a8e2da 100644 (file)
@@ -863,8 +863,6 @@ private:
     MAY_READ = 4,
   };
 
-  void init_groups(UserPerm *groups);
-
   int inode_permission(Inode *in, const UserPerm& perms, unsigned want);
   int xattr_permission(Inode *in, const char *name, unsigned want,
                       const UserPerm& perms);