Commit d7fa4f35 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[REMOVE] - removed WModuleContainer::removeDeep as it is not clear what deep means.

parent 93066bc7
......@@ -232,14 +232,6 @@ void WModuleContainer::remove( boost::shared_ptr< WModule > module )
slock.unlock();
}
void WModuleContainer::removeDeep( boost::shared_ptr< WModule > module )
{
WLogger::getLogger()->addLogMessage( "Deep removal of modules is not yet implemented.", "ModuleContainer (" + getName() + ")", LL_WARNING );
// at least, remove the module itself
remove( module );
}
WModuleContainer::DataModuleListType WModuleContainer::getDataModules()
{
DataModuleListType l;
......
......@@ -121,14 +121,6 @@ public:
*/
virtual void remove( boost::shared_ptr< WModule > module );
/**
* As \ref remove, it removes the module from the container. In contrast to \ref remove, it also removes all the depending modules from the
* container.
*
* \param module the module which should be removed including all depending modules
*/
virtual void removeDeep( boost::shared_ptr< WModule > module );
/**
* Stops all modules inside this container. Note that this function could take some time, since it waits until the last module
* has quit.
......
......@@ -1094,7 +1094,7 @@ void WQtControlPanel::deleteModuleTreeItem()
{
// remove from the container. It will create a new event in the GUI after it has been removed which is then handled by the tree item.
// This method deep removes the module ( it also removes depending modules )
WKernel::getRunningKernel()->getRootContainer()->removeDeep(
WKernel::getRunningKernel()->getRootContainer()->remove(
static_cast< WQtTreeItem* >( m_moduleTreeWidget->selectedItems().at( 0 ) )->getModule()
);
// select another item
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment