From: Patrick Donnelly Date: Tue, 28 Feb 2023 16:25:38 +0000 (-0500) Subject: client: remove unused method X-Git-Tag: v19.0.0~1633^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50310%2Fhead;p=ceph.git client: remove unused method /home/pdonnell/ceph/src/client/Client.cc:8575:13: warning: ‘void attr_set_atime_and_mtime(stat*, const utime_t&, const utime_t&)’ defined but not used [-Wunused-function] 8575 | static void attr_set_atime_and_mtime(struct stat *attr, | ^~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 8abccedd12a3d8dfb4fc926908ba7e2c1f94bf35 Signed-off-by: Patrick Donnelly --- diff --git a/src/client/Client.cc b/src/client/Client.cc index b19ae2487072..1c085345e93e 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8572,16 +8572,6 @@ int Client::chownat(int dirfd, const char *relpath, uid_t new_uid, gid_t new_gid return _setattr(in, &attr, CEPH_SETATTR_UID|CEPH_SETATTR_GID, perms); } -static void attr_set_atime_and_mtime(struct stat *attr, - const utime_t &atime, - const utime_t &mtime) -{ - stat_set_atime_sec(attr, atime.tv.tv_sec); - stat_set_atime_nsec(attr, atime.tv.tv_nsec); - stat_set_mtime_sec(attr, mtime.tv.tv_sec); - stat_set_mtime_nsec(attr, mtime.tv.tv_nsec); -} - // for [l]utime() invoke the timeval variant as the timespec // variant are not yet implemented. for futime[s](), invoke // the timespec variant.