summaryrefslogtreecommitdiff
path: root/starmath/source/dialog.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/dialog.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/dialog.cxx')
-rw-r--r--starmath/source/dialog.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 0dc58c8ed640..930b198dee97 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -91,7 +91,6 @@ SmFontStyles::SmFontStyles() :
aBold ( ResId( RID_FONTBOLD, *SM_MOD()->GetResMgr() ) ),
aItalic ( ResId( RID_FONTITALIC, *SM_MOD()->GetResMgr() ) )
{
-// SM_MOD()->GetResMgr().FreeResource();
aBoldItalic = aBold;
aBoldItalic.AppendAscii( ", " );
@@ -1745,7 +1744,6 @@ void SmSymDefineDialog::FillStyles(BOOL bDeleteText)
XubString aText (aFonts.GetSelectEntry());
if (aText.Len() != 0)
{
- //aStyles.Fill(aText, &aFontList);
// eigene StyleName's verwenden
const SmFontStyles &rStyles = GetFontStyles();
for (USHORT i = 0; i < rStyles.GetCount(); i++)
@@ -1938,7 +1936,6 @@ IMPL_LINK( SmSymDefineDialog, ChangeClickHdl, Button *, EMPTYARG pButton )
aSymbolSets.GetText() );
// remove old symbol if the name was changed then add new one
-// const bool bSetNameChanged = aOldSymbolSets.GetText() != aSymbolSets.GetText();
const bool bNameChanged = aOldSymbols.GetText() != aSymbols.GetText();
if (bNameChanged)
aSymbolMgrCopy.RemoveSymbol( aOldSymbols.GetText() );
@@ -2022,12 +2019,6 @@ void SmSymDefineDialog::UpdateButtons()
// loeschen nur wenn alle Einstellungen gleich sind
bDelete = pOrigSymbol != NULL;
- // aendern wenn bei gleichem Namen mindestens eine Einstellung anders ist
- // oder wenn es noch kein Symbol des neuen Namens gibt (wuerde implizites
- // loeschen des bereits vorhandenen Symbols erfordern)
-// BOOL bEqualName = pOrigSymbol && aTmpSymbolName == pOrigSymbol->GetName();
-// bChange = pOrigSymbol && ( (bEqualName && !bEqual) || (!bEqualName && bAdd) );
-
// aendern nur falls altes Symbol vorhanden und am neuen etwas anders ist
bChange = pOrigSymbol && !bEqual;
}