summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-01-31 11:37:52 +0000
committerPeter Powell <petpow@saberuk.com>2013-02-01 11:47:39 +0000
commitbf6c166c6425df40d4d82f3d20719e33ffce4359 (patch)
tree2b8e1a697add8bd9aa7d55826a7d23f9fb8a299e /src/modules/m_spanningtree
parent0cca0dbb8af9d9207ee99cb3e4762ee2acd1866e (diff)
Remove unused variables detected by Clang 4.2.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp2
-rw-r--r--src/modules/m_spanningtree/protocolinterface.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index ffc466a82..e7892526e 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -83,7 +83,7 @@ void ModuleSpanningTree::init()
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
delete ServerInstance->PI;
- ServerInstance->PI = new SpanningTreeProtocolInterface(this, Utils);
+ ServerInstance->PI = new SpanningTreeProtocolInterface(Utils);
loopCall = false;
// update our local user count
diff --git a/src/modules/m_spanningtree/protocolinterface.h b/src/modules/m_spanningtree/protocolinterface.h
index 234b7bbf6..297366893 100644
--- a/src/modules/m_spanningtree/protocolinterface.h
+++ b/src/modules/m_spanningtree/protocolinterface.h
@@ -26,10 +26,9 @@ class ModuleSpanningTree;
class SpanningTreeProtocolInterface : public ProtocolInterface
{
SpanningTreeUtilities* Utils;
- ModuleSpanningTree* Module;
void SendChannel(Channel* target, char status, const std::string &text);
public:
- SpanningTreeProtocolInterface(ModuleSpanningTree* mod, SpanningTreeUtilities* util) : Utils(util), Module(mod) { }
+ SpanningTreeProtocolInterface(SpanningTreeUtilities* util) : Utils(util) { }
virtual ~SpanningTreeProtocolInterface() { }
virtual bool SendEncapsulatedData(const parameterlist &encap);