diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-27 16:04:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-28 08:32:04 +0200 |
commit | 64977e5c2bc6f869cacfe589f9155396847d935c (patch) | |
tree | c043a64d6efe7417b8d424ff26ea03fec3638510 | |
parent | 98881b0a5574391dd98ff68d8b7453df1e3ca930 (diff) |
remove unused code FontSizeBox::GetValue(unsigned short, FieldUnit)
Change-Id: I63df5364d69bf60e7a5ee2b5854b41ce27f10894
-rw-r--r-- | include/svtools/ctrlbox.hxx | 1 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 19 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 21 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index f4752a9d2dfd..6571dddde9ee 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -524,7 +524,6 @@ public: virtual void SetValue( sal_Int64 nNewValue ); virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const; virtual sal_Int64 GetValue() const; - sal_Int64 GetValue( sal_uInt16 nPos, FieldUnit eOutUnit ) const; private: // declared as private because some compilers would generate the default functions diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 8860c67b9670..ea1cdee711b0 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1974,25 +1974,6 @@ void FontSizeBox::SetValue( sal_Int64 nNewValue ) -sal_Int64 FontSizeBox::GetValue( sal_uInt16 nPos, FieldUnit eOutUnit ) const -{ - if ( !bRelative ) - { - sal_Int64 nComboVal = static_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(ComboBox::GetEntryData( nPos ))); - if ( nComboVal < 0 ) // marked as special? - { - return MetricField::ConvertValue( -nComboVal, mnBaseValue, GetDecimalDigits(), - meUnit, eOutUnit ); - } - } - - // do normal font size processing - sal_Int64 nRetValue = MetricBox::GetValue( nPos, eOutUnit ); - return nRetValue; -} - - - sal_Int64 FontSizeBox::GetValue( FieldUnit eOutUnit ) const { if ( !bRelative ) diff --git a/unusedcode.easy b/unusedcode.easy index 4e9b23878c93..84213afcaf6b 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -19,7 +19,6 @@ FileStream::close() FileStream::createTempFile(rtl::OString const&) FileStream::write(void const*, unsigned long) FontSelectPatternAttributes::FontSelectPatternAttributes(PhysicalFontFace const&, Size const&, float, int, bool) -FontSizeBox::GetValue(unsigned short, FieldUnit) const GDriveDocument::GDriveDocument(GDriveSession*) GDriveFolder::GDriveFolder(GDriveSession*) GDriveProperty::GDriveProperty() |