r17737 by jghali - remove some dead code

scribus-commit scribus-commit at lists.scribus.net
Sat Jul 28 11:35:32 UTC 2012


Author: jghali
Date: Sat Jul 28 11:35:32 2012
New Revision: 17737

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17737
Log:
remove some dead code

Modified:
    branches/Version14x/Scribus/scribus/scribus.cpp

Modified: branches/Version14x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17737&path=/branches/Version14x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribus.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribus.cpp Sat Jul 28 11:35:32 2012
@@ -4198,27 +4198,9 @@
 		for (int azz=0; azz<docItemsCount; ++azz)
 		{
 			PageItem *ite = doc->Items->at(azz);
-			//CB dont need this as we get it from the loading page in 1.2.x docs. 1.3.x items have this anyway.
-			/*
-			if (ite->Groups.count() != 0)
-				doc->GroupOnPage(ite);
-			else
-				ite->OwnPage = doc->OnPage(ite);
-			*/
-			//view->setRedrawBounding(ite);
 //			qDebug() << QString("load D: %1 %2 %3").arg(azz).arg((uint)ite).arg(ite->itemType());
 			if(ite->nextInChain() == NULL)
 				ite->layout();
-/*			if (doc->OldBM)
-			{
-				if ((ite->itemType() == PageItem::TextFrame) && (ite->isBookmark))
-					bookmarkPalette->BView->AddPageItem(ite);
-			}
-			else
-			{
-				if ((ite->itemType() == PageItem::TextFrame) && (ite->isBookmark))
-					bookmarkPalette->BView->ChangeItem(ite->BMnr, ite->ItemNr);
-			} */
 		}
 		for (int azz=0; azz<doc->FrameItems.count(); ++azz)
 		{
@@ -4228,8 +4210,6 @@
 				ite->layout();
 		}
 		/*qDebug("Time elapsed: %d ms", t.elapsed());*/
-//		if (doc->OldBM)
-//			StoreBookmarks();
 		doc->RePos = false;
 		doc->setModified(false);
 		updateRecent(FName);




More information about the scribus-commit mailing list