]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: remove usless _openat()
authorXiubo Li <xiubli@redhat.com>
Mon, 1 Nov 2021 06:08:04 +0000 (14:08 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 2 Nov 2021 01:20:33 +0000 (09:20 +0800)
The _openat() is never used and I believe this also was introduced
when coding previous interim patches and forgot to remove it.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/client/Client.h

index 94acb461df6f09897f4208b6af93e1257c81b592..52a18d1199a3a3c01002d060c6da89f42ff83bd5 100644 (file)
@@ -9216,11 +9216,6 @@ int Client::open(const char *relpath, int flags, const UserPerm& perms,
                 stripe_count, object_size, data_pool, alternate_name);
 }
 
-int Client::_openat(int dirfd, const char *relpath, int flags, const UserPerm& perms,
-                    mode_t mode, std::string alternate_name) {
-  return create_and_open(dirfd, relpath, flags, perms, mode, 0, 0, 0, NULL, alternate_name);
-}
-
 int Client::openat(int dirfd, const char *relpath, int flags, const UserPerm& perms,
                    mode_t mode, int stripe_unit, int stripe_count, int object_size,
                    const char *data_pool, std::string alternate_name) {
index 66ec9c7a49191e48b41c642deca725a0f1f55aec..bbdf7b53c8ea91a49a6f0c5a2f8302d09db7dbdb 100644 (file)
@@ -446,8 +446,6 @@ public:
   int open(const char *path, int flags, const UserPerm& perms,
           mode_t mode, int stripe_unit, int stripe_count, int object_size,
           const char *data_pool, std::string alternate_name="");
-  int _openat(int dirfd, const char *relpath, int flags, const UserPerm& perms,
-              mode_t mode=0, std::string alternate_name="");
   int openat(int dirfd, const char *relpath, int flags, const UserPerm& perms,
              mode_t mode, int stripe_unit, int stripe_count,
              int object_size, const char *data_pool, std::string alternate_name);