r18584 by craig - Remove unused code

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 2 07:46:58 UTC 2013


Author: craig
Date: Sat Nov  2 07:46:58 2013
New Revision: 18584

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18584
Log:
Remove unused code

Modified:
    trunk/Scribus/scribus/menumanager.cpp

Modified: trunk/Scribus/scribus/menumanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18584&path=/trunk/Scribus/scribus/menumanager.cpp
==============================================================================
--- trunk/Scribus/scribus/menumanager.cpp (original)
+++ trunk/Scribus/scribus/menumanager.cpp Sat Nov  2 07:46:58 2013
@@ -113,7 +113,8 @@
 	{
 		QList<QAction*> mba=scribusMenuBar->actions();
 		QAction* beforeAct;
-		foreach (beforeAct, mba) {
+		foreach (beforeAct, mba)
+		{
 			if (beforeMenuName==beforeAct->text().remove('&').remove("..."))
 				break;
 		}
@@ -201,46 +202,6 @@
 	if (rememberedMenus.contains(menuName))
 		if (rememberedMenus.value(menuName)!=NULL)
 			addMenuItemStringstoMenu(menuName, rememberedMenus.value(menuName), menuActions);
-}
-
-
-void MenuManager::addMenuItemStringstoSpecialMenu(const QString &menuName, const QMap<QString, QPointer<ScrAction> > &menuActions)
-{
-	if (rememberedMenus.contains(menuName))
-	{
-		if (rememberedMenus.value(menuName)!=NULL)
-		{
-			if (menuName=="ItemSendToScrapbook")
-			{
-				for( QMap<QString, QPointer<ScrAction> >::ConstIterator it = menuActions.begin(); it!=menuActions.end(); ++it )
-					rememberedMenus.value(menuName)->addAction(*it);
-			}
-			else if (menuName=="Windows")
-			{
-				for( QMap<QString, QPointer<ScrAction> >::ConstIterator it = menuActions.begin(); it!=menuActions.end(); ++it )
-					rememberedMenus.value(menuName)->addAction(*it);
-			}
-			else if (menuName=="FileOpenRecent")
-			{
-				for( QMap<QString, QPointer<ScrAction> >::ConstIterator it = menuActions.begin(); it!=menuActions.end(); ++it )
-					rememberedMenus.value(menuName)->addAction(*it);
-			}
-			else if (menuName=="EditPasteRecent")
-			{
-				for( QMap<QString, QPointer<ScrAction> >::ConstIterator it = menuActions.begin(); it!=menuActions.end(); ++it )
-				{
-					rememberedMenus.value(menuName)->addAction(*it);
-				}
-			}
-			else if (menuName=="ItemLayer")
-			{
-				for( QMap<QString, QPointer<ScrAction> >::ConstIterator it = menuActions.begin(); it!=menuActions.end(); ++it )
-				{
-					rememberedMenus.value(menuName)->addAction(*it);
-				}
-			}
-		}
-	}
 }
 
 void MenuManager::clearMenuStrings(const QString &menuName)




More information about the scribus-commit mailing list