summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-03 09:27:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-03 11:04:48 +0000
commitb105ad5bafa847f5dd53aee8107a7c77cebcfdfc (patch)
tree39a55a5706856e3b4d43e3a7697b50694fa9cb11 /sd
parentd52ac7508ca87f5acb16dc0539d1814915847925 (diff)
callcatcher: shave off some more
Change-Id: I8ed7028f865bd4a6425859ab3b57ed8e928a78e4
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/PreviewValueSet.cxx21
-rw-r--r--sd/source/ui/sidebar/PreviewValueSet.hxx1
2 files changed, 0 insertions, 22 deletions
diff --git a/sd/source/ui/sidebar/PreviewValueSet.cxx b/sd/source/ui/sidebar/PreviewValueSet.cxx
index 59242ddbae8d..c738b0be64d5 100644
--- a/sd/source/ui/sidebar/PreviewValueSet.cxx
+++ b/sd/source/ui/sidebar/PreviewValueSet.cxx
@@ -111,27 +111,6 @@ sal_uInt16 PreviewValueSet::CalculateRowCount (sal_uInt16 nColumnCount) const
return (sal_uInt16)nRowCount;
}
-sal_Int32 PreviewValueSet::GetPreferredWidth (sal_Int32 nHeight)
-{
- int nPreferredWidth (maPreviewSize.Width() + 2*mnBorderWidth);
-
- // Get height of each row.
- int nItemHeight (maPreviewSize.Height() + 2*mnBorderHeight);
-
- // Calculate the row- and column count and from the later the preferred
- // width.
- int nRowCount = nHeight / nItemHeight;
- if (nRowCount > 0)
- {
- int nColumnCount = (GetItemCount()+nRowCount-1) / nRowCount;
- if (nColumnCount > 0)
- nPreferredWidth = (maPreviewSize.Width() + 2*mnBorderWidth)
- * nColumnCount;
- }
-
- return nPreferredWidth;
-}
-
sal_Int32 PreviewValueSet::GetPreferredHeight (sal_Int32 nWidth)
{
int nRowCount (CalculateRowCount(CalculateColumnCount(nWidth)));
diff --git a/sd/source/ui/sidebar/PreviewValueSet.hxx b/sd/source/ui/sidebar/PreviewValueSet.hxx
index 8ed413de2351..f41f33b2462d 100644
--- a/sd/source/ui/sidebar/PreviewValueSet.hxx
+++ b/sd/source/ui/sidebar/PreviewValueSet.hxx
@@ -38,7 +38,6 @@ public:
void SetPreviewSize (const Size& rSize);
- sal_Int32 GetPreferredWidth (sal_Int32 nHeight);
sal_Int32 GetPreferredHeight (sal_Int32 nWidth);
/** Set the number of rows and columns according to the current number