summaryrefslogtreecommitdiff
path: root/starmath/source/document.cxx
diff options
context:
space:
mode:
authorPhil Bordelon <phil@thenexusproject.org>2010-09-30 22:35:03 +0100
committerNoel Power <noel.power@novell.com>2010-09-30 22:35:03 +0100
commitea387b4ec80303a447a8ded7891f90edfd2f6135 (patch)
treee3aa2016da39eb025f256d6163a0d18020a670b6 /starmath/source/document.cxx
parent295b2fffd301f02a4aa33f5e46b261258b906f9e (diff)
Clean up dead code and comments in starmath
This patch removes a bunch of commented-out code, gets rid of code sitting in #if 0 blocks, and gets rid of #if 1 statements. It should have no functional changes. Some revision-control-averse comments were removed as well, but they were not the focus of the patch. Some comment removal required reformatting of code afterwards (such as when all code in an else block was defunct, or when a starting if statement was removed). With a single exception, no line-internal commented-out code is handled by this patch to ease review. In addition, no code that appears to have a debugging purpose was removed, even if it was commented out.
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r--starmath/source/document.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index ab1382b97879..48bb4bba1eeb 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -173,7 +173,6 @@ void SmDocShell::SetText(const String& rBuffer)
SetFormulaArranged( FALSE );
Parse();
- //Repaint();
SmViewShell *pViewSh = SmGetActiveView();
if( pViewSh )
@@ -264,7 +263,6 @@ void SmDocShell::ArrangeFormula()
//! Nur f�r die Dauer der Existenz dieses Objekts sind am Drucker die
//! richtigen Einstellungen garantiert.
SmPrinterAccess aPrtAcc(*this);
-// OutputDevice *pOutDev = aPrtAcc.GetPrinter();
OutputDevice* pOutDev = aPrtAcc.GetRefDev();
if (!pOutDev)
@@ -420,9 +418,6 @@ EditEngine& SmDocShell::GetEditEngine()
pEditEngine->ClearModifyFlag();
- // forces new settings to be used if the itempool was modified
- // after cthe creation of the EditEngine
- //pEditEngine->Clear(); //#77957 incorrect font size
}
return *pEditEngine;
}
@@ -770,16 +765,11 @@ BOOL SmDocShell::ConvertFrom(SfxMedium &rMedium)
Parse();
}
}
- else
- {
- //bSuccess = ImportSM20File( pStream );
- }
}
}
if ( GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
{
- //???OnDocumentPrinterChanged(0);
SetFormulaArranged( FALSE );
Repaint();
}
@@ -834,7 +824,6 @@ BOOL SmDocShell::Load( SfxMedium& rMedium )
if ( GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
{
- //???OnDocumentPrinterChanged(0);
SetFormulaArranged( FALSE );
Repaint();
}