From 5c419b64755c200d43b60d1b435f09a4e5b17f7e Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Thu, 30 May 2019 15:52:11 -0400 Subject: [PATCH] client: drop Client::lookup_parent Nothing calls this method. Signed-off-by: Jeff Layton --- src/client/Client.cc | 6 ------ src/client/Client.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 6af7ba04aae..7b77f1248ae 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8615,12 +8615,6 @@ int Client::_lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) return r; } -int Client::lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) -{ - std::lock_guard lock(client_lock); - return _lookup_parent(ino, perms, parent); -} - /** * Populate the parent dentry for `ino`, provided it is * a child of `parent`. diff --git a/src/client/Client.h b/src/client/Client.h index 003c628b0cf..69325b0209e 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -413,7 +413,6 @@ public: int lookup_hash(inodeno_t ino, inodeno_t dirino, const char *name, const UserPerm& perms); int lookup_ino(inodeno_t ino, const UserPerm& perms, Inode **inode=NULL); - int lookup_parent(Inode *in, const UserPerm& perms, Inode **parent=NULL); int lookup_name(Inode *in, Inode *parent, const UserPerm& perms); int close(int fd); loff_t lseek(int fd, loff_t offset, int whence); -- 2.39.5