diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 15:05:13 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 22:19:34 +0100 |
commit | e7e4871b2880f5690030b1b16978f2575eea3948 (patch) | |
tree | ea96b96dd53fcb36034b39b614ec40f08db73158 /vcl/source | |
parent | 3ab04ef5528276682de8b8e91033bf81457d5a56 (diff) |
unusedcode.easy: some cleaning
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/field.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 66176e8d4d5d..bcb676d37ba5 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -651,23 +651,6 @@ sal_Bool NumericFormatter::IsValueModified() const // ----------------------------------------------------------------------- -Fraction NumericFormatter::ConvertToFraction( sal_Int64 nValue ) -{ - // caution: precision loss in double cast (and in fraction anyhow) - return Fraction( (double)nValue/(double)ImplPower10( GetDecimalDigits() ) ); -} - -// ----------------------------------------------------------------------- - -sal_Int64 NumericFormatter::ConvertToLong( const Fraction& rValue ) -{ - Fraction aFract = rValue; - aFract *= Fraction( (long)ImplPower10( GetDecimalDigits() ), 1 ); - return (sal_Int64)(double)aFract; -} - -// ----------------------------------------------------------------------- - sal_Int64 NumericFormatter::Normalize( sal_Int64 nValue ) const { return (nValue * ImplPower10( GetDecimalDigits() ) ); @@ -1042,29 +1025,6 @@ void NumericBox::InsertValue( sal_Int64 nValue, sal_uInt16 nPos ) // ----------------------------------------------------------------------- -void NumericBox::RemoveValue( sal_Int64 nValue ) -{ - ComboBox::RemoveEntry( CreateFieldText( nValue ) ); -} - -// ----------------------------------------------------------------------- - -sal_Int64 NumericBox::GetValue( sal_uInt16 nPos ) const -{ - double nValue = 0; - ImplNumericGetValue( ComboBox::GetEntry( nPos ), nValue, GetDecimalDigits(), ImplGetLocaleDataWrapper() ); - return (sal_Int64)nValue; -} - -// ----------------------------------------------------------------------- - -sal_uInt16 NumericBox::GetValuePos( sal_Int64 nValue ) const -{ - return ComboBox::GetEntryPos( CreateFieldText( nValue ) ); -} - -// ----------------------------------------------------------------------- - static sal_Bool ImplMetricProcessKeyInput( Edit* pEdit, const KeyEvent& rKEvt, sal_Bool, sal_Bool bUseThousandSep, const LocaleDataWrapper& rWrapper ) { |