summaryrefslogtreecommitdiff
path: root/starmath/source/node.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/node.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/node.cxx')
-rwxr-xr-xstarmath/source/node.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index b986a046b205..28977793b141 100755
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -264,7 +264,6 @@ void SmNode::SetFontSize(const Fraction &rSize, USHORT nType)
{
Fraction aVal (SmPtsTo100th_mm(rSize.GetNumerator()),
rSize.GetDenominator());
- //long nHeight = ::rtl::math::round(aVal);
long nHeight = (long)aVal;
aFntSize = GetFont().GetSize();
@@ -364,7 +363,6 @@ void SmNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell)
}
GetFont() = rFormat.GetFont(FNT_MATH);
- //GetFont().SetCharSet(RTL_TEXTENCODING_SYMBOL);
DBG_ASSERT( GetFont().GetCharSet() == RTL_TEXTENCODING_UNICODE,
"unexpected CharSet" );
GetFont().SetWeight(WEIGHT_NORMAL);
@@ -667,8 +665,6 @@ void SmStructureNode::GetAccessibleText( String &rText ) const
if (pNode->IsVisible())
((SmStructureNode *) pNode)->nAccIndex = rText.Len();
pNode->GetAccessibleText( rText );
-// if (rText.Len() && ' ' != rText.GetChar( rText.Len() - 1 ))
-// rText += String::CreateFromAscii( " " );
}
}
}
@@ -763,7 +759,6 @@ void SmTableNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
{ if (NULL != (pNode = GetSubNode(i)))
{ const SmRect &rNodeRect = pNode->GetRect();
const SmNode *pCoNode = pNode->GetLeftMost();
- //SmTokenType eType = pCoNode->GetToken().eType;
RectHorAlign eHorAlign = pCoNode->GetRectHorAlign();
aPos = rNodeRect.AlignTo(*this, RP_BOTTOM,
@@ -1103,7 +1098,6 @@ void SmBinVerNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
void SmBinVerNode::CreateTextFromNode(String &rText)
{
SmNode *pNum = GetSubNode(0),
- // *pLine = GetSubNode(1),
*pDenom = GetSubNode(2);
pNum->CreateTextFromNode(rText);
APPEND(rText,"over ");
@@ -2254,7 +2248,6 @@ void SmRootSymbolNode::Draw(OutputDevice &rDev, const Point &rPosition) const
// This is done by shifting it's output-position to a point that
// corresponds exactly to a pixel on the output device.
Point aDrawPos( rDev.PixelToLogic(rDev.LogicToPixel(aBar.TopLeft())) );
- //aDrawPos.X() = aBar.Left(); //! don't change X position
aBar.SetPos( aDrawPos );
rDev.DrawRect( aBar );
@@ -2300,7 +2293,6 @@ void SmRectangleNode::Arrange(const OutputDevice &rDev, const SmFormat &/*rForma
// add some borderspace
ULONG nTmpBorderWidth = GetFont().GetBorderWidth();
- //nWidth += nTmpBorderWidth;
nHeight += 2 * nTmpBorderWidth;
//! use this method in order to have 'SmRect::HasAlignInfo() == TRUE'