summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-12 13:24:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-12 13:24:59 +0100
commitac334eeac573fcc38a4ba6afa34e967f13154030 (patch)
treeb1628004a978eea310c4bb7a34e3138cd8dfaf33 /sc/source
parent57cd67224ab349f7738f4429f3adc569b7bacb11 (diff)
lcl_LineSize is unused
Change-Id: Ied166af182c76d72c2934f7d3a7279aa0cd63a62
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/attarray.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index d3ea03dbde30..39658902fd5c 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