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
commit4880e19059d2a51b2f2cfeef532878d215b9fe6d (patch)
treedcec6f11949274db2a04333ccb574a0776f951dc /starmath/source/document.cxx
parent5ad2e1a56da50873516f7ae886eabff97ba4f30f (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 94bd3e51e3..8c9127d6dd 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();
}