From 96394c3e0dfc4cc98284a52e9b4691ae81ed6918 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Mon, 26 Sep 2016 20:57:36 +0300 Subject: [PATCH] Unnecessary move-assignment operator removed. --- include/telebotxx/User.hpp | 1 - src/User.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/telebotxx/User.hpp b/include/telebotxx/User.hpp index 67af79d..ea5e3fc 100644 --- a/include/telebotxx/User.hpp +++ b/include/telebotxx/User.hpp @@ -47,7 +47,6 @@ namespace telebotxx void swap(User&) noexcept; const User& operator=(User other); - User& operator=(User&& other); private: int id_; diff --git a/src/User.cpp b/src/User.cpp index 603dc5b..9f03891 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -68,5 +68,3 @@ const User& User::operator=(User other) swap(other); return *this; } - -User& User::operator=(User&& other) = default;