common: Make SyncableObject non-copyable
[quassel.git] / src / common / syncableobject.cpp
index 695ab91..825b97d 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2020 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -44,13 +44,6 @@ SyncableObject::SyncableObject(const QString& objectName, QObject* parent)
     });
 }
 
-SyncableObject::SyncableObject(const SyncableObject& other, QObject* parent)
-    : SyncableObject(QString{}, parent)
-{
-    _initialized = other._initialized;
-    _allowClientUpdates = other._allowClientUpdates;
-}
-
 SyncableObject::~SyncableObject()
 {
     QList<SignalProxy*>::iterator proxyIter = _signalProxies.begin();
@@ -61,16 +54,6 @@ SyncableObject::~SyncableObject()
     }
 }
 
-SyncableObject& SyncableObject::operator=(const SyncableObject& other)
-{
-    if (this == &other)
-        return *this;
-
-    _initialized = other._initialized;
-    _allowClientUpdates = other._allowClientUpdates;
-    return *this;
-}
-
 bool SyncableObject::isInitialized() const
 {
     return _initialized;