[Libreoffice-commits] .: 2 commits - basic/source svx/source
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Sat Jan 29 06:44:28 PST 2011
basic/source/sbx/sbxform.cxx | 4 +---
svx/source/svdraw/svdtrans.cxx | 16 ----------------
2 files changed, 1 insertion(+), 19 deletions(-)
New commits:
commit 382502a3e8adf718c9c5c216d9ff32c0551ca6b4
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Fri Jan 28 23:05:53 2011 +0100
Remove some dead code.
diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx
index 0084e0a..6b89356 100644
--- a/svx/source/svdraw/svdtrans.cxx
+++ b/svx/source/svdraw/svdtrans.cxx
@@ -56,7 +56,6 @@ void ResizeRect(Rectangle& rRect, const Point& rRef, const Fraction& rxFact, con
{
Fraction xFact(rxFact);
Fraction yFact(ryFact);
- //long nHgt=rRect.Bottom()-rRect.Top();
{
if (xFact.GetDenominator()==0) {
@@ -268,16 +267,6 @@ void ShearXPoly(XPolyPolygon& rPoly, const Point& rRef, double tn, bool bVShear)
}
////////////////////////////////////////////////////////////////////////////////////////////////////
-//
-// @@@@ @@@@@ @@@@ @@@@ @@ @@
-// @@ @@ @@ @@ @@ @@ @@ @@ @@ @@
-// @@ @@ @@ @@ @@ @@ @@ @@ @@
-// @@ @@@@@ @@ @@ @@ @@ @@@@
-// @@ @@ @@ @@ @@ @@ @@ @@ @@
-// @@ @@ @@ @@ @@ @@ @@ @@ @@ @@
-// @@@@ @@ @@ @@@@ @@@@ @@ @@
-//
-////////////////////////////////////////////////////////////////////////////////////////////////////
double CrookRotateXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCenter,
const Point& rRad, double& rSin, double& rCos, bool bVert)
@@ -392,19 +381,14 @@ double CrookStretchXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCen
const Point& rRad, double& rSin, double& rCos, bool bVert,
const Rectangle rRefRect)
{
- //bool bC1=pC1!=NULL;
- //bool bC2=pC2!=NULL;
- //long x0=rPnt.X();
long y0=rPnt.Y();
CrookSlantXPoint(rPnt,pC1,pC2,rCenter,rRad,rSin,rCos,bVert);
if (bVert) {
} else {
- //long nBase=rCenter.Y()-rRad.Y();
long nTop=rRefRect.Top();
long nBtm=rRefRect.Bottom();
long nHgt=nBtm-nTop;
long dy=rPnt.Y()-y0;
- //bool bOben=rRad.Y()<0;
double a=((double)(y0-nTop))/nHgt;
a*=dy;
rPnt.Y()=y0+Round(a);
commit d043db1911a041170819a02a460c8b3ff78176b4
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Fri Jan 28 22:24:01 2011 +0100
cppcheck: remove unused variable dTemp and dPos.
diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx
index 533de96..33c6ae3 100644
--- a/basic/source/sbx/sbxform.cxx
+++ b/basic/source/sbx/sbxform.cxx
@@ -385,13 +385,11 @@ short SbxBasicFormater::GetDigitAtPos( double dNumber, short nPos,
double& dNextNumber, BOOL& bFoundFirstDigit )
// ACHTUNG: nPos kann auch negativ werden, f"ur Stellen nach dem Dezimal-Punkt
{
- double dTemp = dNumber;
- double dDigit,dPos;
+ double dDigit;
short nMaxDigit;
// erst mal aus der Zahl eine positive Zahl machen:
dNumber = fabs( dNumber );
- dPos = (double)nPos;
// "uberpr"ufe ob Zahl zu klein f"ur angegebene Stelle ist
nMaxDigit = (short)get_number_of_digits( dNumber );
More information about the Libreoffice-commits
mailing list