From 7a4a9e1ed5733a6517124edf3c4bd55e87188dde Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Fri, 13 May 2011 22:33:30 +0100 Subject: Remove dead UI reference from Swiften diff --git a/Swift/Controllers/AdHocManager.cpp b/Swift/Controllers/AdHocManager.cpp index 0fa63a1..834aaec 100644 --- a/Swift/Controllers/AdHocManager.cpp +++ b/Swift/Controllers/AdHocManager.cpp @@ -62,7 +62,7 @@ void AdHocManager::handleServerDiscoItemsResponse(boost::shared_ptr void AdHocManager::handleUIEvent(boost::shared_ptr event) { boost::shared_ptr adHocEvent = boost::dynamic_pointer_cast(event); if (adHocEvent) { - factory_->createAdHocCommandWindow(boost::shared_ptr(new OutgoingAdHocCommandSession(adHocEvent->getCommand(), factory_, iqRouter_))); + factory_->createAdHocCommandWindow(boost::shared_ptr(new OutgoingAdHocCommandSession(adHocEvent->getCommand(), iqRouter_))); } } diff --git a/Swiften/AdHoc/OutgoingAdHocCommandSession.cpp b/Swiften/AdHoc/OutgoingAdHocCommandSession.cpp index da7f042..758b5e7 100644 --- a/Swiften/AdHoc/OutgoingAdHocCommandSession.cpp +++ b/Swiften/AdHoc/OutgoingAdHocCommandSession.cpp @@ -11,7 +11,7 @@ #include namespace Swift { -OutgoingAdHocCommandSession::OutgoingAdHocCommandSession(const DiscoItems::Item& command, AdHocCommandWindowFactory* /*factory*/, IQRouter* iqRouter) : command_(command), iqRouter_(iqRouter), isMultiStage_(false) { +OutgoingAdHocCommandSession::OutgoingAdHocCommandSession(const DiscoItems::Item& command, IQRouter* iqRouter) : command_(command), iqRouter_(iqRouter), isMultiStage_(false) { } diff --git a/Swiften/AdHoc/OutgoingAdHocCommandSession.h b/Swiften/AdHoc/OutgoingAdHocCommandSession.h index f4b5242..1e0a42d 100644 --- a/Swiften/AdHoc/OutgoingAdHocCommandSession.h +++ b/Swiften/AdHoc/OutgoingAdHocCommandSession.h @@ -16,7 +16,7 @@ namespace Swift { class IQRouter; class MainWindow; class UIEventStream; - class AdHocCommandWindowFactory; + class OutgoingAdHocCommandSession { public: @@ -29,7 +29,7 @@ namespace Swift { Enabled /** Action is applicable and currently available */ = 2, EnabledAndPresent = 3}; - OutgoingAdHocCommandSession(const DiscoItems::Item& command, AdHocCommandWindowFactory* factory, IQRouter* iqRouter); + OutgoingAdHocCommandSession(const DiscoItems::Item& command, IQRouter* iqRouter); /** * Send initial request to the target. */ -- cgit v0.10.2-6-g49f6