]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/FSMapUser.h: remove copy ctr and assign op 11509/head
authorMichal Jarzabek <stiopa@gmail.com>
Sat, 15 Oct 2016 16:00:52 +0000 (17:00 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Sat, 15 Oct 2016 17:23:37 +0000 (18:23 +0100)
The default ones generated by the compiler will be the same. Also
defining copy constructor and assignment operator prevents compiler
from generating deafult move assignment and move constructor.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/mds/FSMapUser.h

index 4884f6891c5f376dd7b36baa1f4a592d98a39d47..cfc6687d348f4d61721e69b3414b73e3e7f0dc54 100644 (file)
@@ -35,18 +35,6 @@ public:
   FSMapUser()
     : epoch(0), legacy_client_fscid(FS_CLUSTER_ID_NONE) { }
 
-  FSMapUser(const FSMapUser &o)
-    : epoch(o.epoch), legacy_client_fscid(o.legacy_client_fscid),
-      filesystems(o.filesystems) { }
-
-  FSMapUser &operator=(const FSMapUser &o)
-  {
-    epoch = o.epoch;
-    legacy_client_fscid = o.legacy_client_fscid;
-    filesystems = o.filesystems;
-    return *this;
-  }
-
   epoch_t get_epoch() const { return epoch; }
 
   fs_cluster_id_t get_fs_cid(const std::string &name) const {