]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove unused method 50310/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 28 Feb 2023 16:25:38 +0000 (11:25 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 28 Feb 2023 16:26:14 +0000 (11:26 -0500)
    /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 <pdonnell@redhat.com>
src/client/Client.cc

index b19ae24870725449526d0fdda607ec013b7c4bc1..1c085345e93eb2f6a075fd144c505e5bfed455da 100644 (file)
@@ -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.