[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 12 05:25:23 PDT 2012
sc/source/core/data/attarray.cxx | 25 -------------------------
1 file changed, 25 deletions(-)
New commits:
commit ac334eeac573fcc38a4ba6afa34e967f13154030
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 12 13:24:59 2012 +0100
lcl_LineSize is unused
Change-Id: Ied166af182c76d72c2934f7d3a7279aa0cd63a62
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index d3ea03d..3965890 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -1208,31 +1208,6 @@ void ScAttrArray::ApplyBlockFrame( const SvxBoxItem* pLineOuter, const SvxBoxInf
}
}
-
-static long lcl_LineSize( const SvxBorderLine& rLine )
-{
- // only one line -> half width, min. 20
- // double line -> half line spacing + (per min. 20)
-
- long nTotal = 0;
- sal_uInt16 nWidth = Max( rLine.GetOutWidth(), rLine.GetInWidth() );
- sal_uInt16 nDist = rLine.GetDistance();
- if (nDist)
- {
- OSL_ENSURE( rLine.GetOutWidth() && rLine.GetInWidth(),
- "Line has a distance, but only a width?" );
-
- nTotal += ( nDist > 20 ) ? nDist : 20;
- nTotal += ( nWidth > 20 ) ? nWidth : 20;
- }
- else if (nWidth)
- nTotal += ( nWidth > 20 ) ? nWidth : 20;
-
- // also halved ?
-
- return nTotal;
-}
-
// Test if field contains specific attribute
bool ScAttrArray::HasAttrib( SCROW nRow1, SCROW nRow2, sal_uInt16 nMask ) const
More information about the Libreoffice-commits
mailing list