From 8a4286f55c6018fd1710193d41ee87ef8211888a Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sat, 15 Oct 2016 17:00:52 +0100 Subject: [PATCH] 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 --- src/mds/FSMapUser.h | 12 ------------ 1 file changed, 12 deletions(-) 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 { -- 2.47.3