From: Michal Jarzabek Date: Sat, 15 Oct 2016 16:00:52 +0000 (+0100) Subject: mds/FSMapUser.h: remove copy ctr and assign op X-Git-Tag: v11.1.0~557^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a4286f55c6018fd1710193d41ee87ef8211888a;p=ceph.git mds/FSMapUser.h: remove copy ctr and assign op 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 --- diff --git a/src/mds/FSMapUser.h b/src/mds/FSMapUser.h index 4884f6891c5f..cfc6687d348f 100644 --- a/src/mds/FSMapUser.h +++ b/src/mds/FSMapUser.h @@ -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 {