From 2ec6212f1587aeedb759f313128e012b182834e3 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Mon, 1 Nov 2021 14:08:04 +0800 Subject: [PATCH] client: remove usless _openat() 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 --- src/client/Client.cc | 5 ----- src/client/Client.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 94acb461df6f0..52a18d1199a3a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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) { diff --git a/src/client/Client.h b/src/client/Client.h index 66ec9c7a49191..bbdf7b53c8ea9 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -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); -- 2.39.5