sigproxy: Don't expose the thread_local '_current' attribute
[quassel.git] / src / common / signalproxy.h
index f3ea4c5..a3d7703 100644 (file)
@@ -80,9 +80,7 @@ public:
     void dumpProxyStats();
     void dumpSyncMap(SyncableObject *object);
 
     void dumpProxyStats();
     void dumpSyncMap(SyncableObject *object);
 
-    static SignalProxy *current() {
-        return _current;
-    }
+    static SignalProxy *current();
 
     /**@{*/
     /**
 
     /**@{*/
     /**
@@ -217,8 +215,6 @@ private:
     Peer *_sourcePeer = nullptr;
     Peer *_targetPeer = nullptr;
 
     Peer *_sourcePeer = nullptr;
     Peer *_targetPeer = nullptr;
 
-    thread_local static SignalProxy *_current;
-
     friend class SignalRelay;
     friend class SyncableObject;
     friend class Peer;
     friend class SignalRelay;
     friend class SyncableObject;
     friend class Peer;