summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-20 15:05:13 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-20 22:19:34 +0100
commite7e4871b2880f5690030b1b16978f2575eea3948 (patch)
treeea96b96dd53fcb36034b39b614ec40f08db73158 /vcl
parent3ab04ef5528276682de8b8e91033bf81457d5a56 (diff)
unusedcode.easy: some cleaning
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/field.hxx6
-rw-r--r--vcl/source/control/field.cxx40
2 files changed, 0 insertions, 46 deletions
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx
index 9f0b320a5e85..c9d991168322 100644
--- a/vcl/inc/vcl/field.hxx
+++ b/vcl/inc/vcl/field.hxx
@@ -216,8 +216,6 @@ public:
sal_Bool IsValueModified() const;
sal_Int64 GetCorrectedValue() const { return mnCorrectedValue; }
- Fraction ConvertToFraction( sal_Int64 nValue );
- sal_Int64 ConvertToLong( const Fraction& rValue );
sal_Int64 Normalize( sal_Int64 nValue ) const;
sal_Int64 Denormalize( sal_Int64 nValue ) const;
};
@@ -737,10 +735,6 @@ public:
virtual void ReformatAll();
void InsertValue( sal_Int64 nValue, sal_uInt16 nPos = COMBOBOX_APPEND );
- void RemoveValue( sal_Int64 nValue );
- using NumericFormatter::GetValue;
- sal_Int64 GetValue( sal_uInt16 nPos ) const;
- sal_uInt16 GetValuePos( sal_Int64 nPos ) const;
};
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 )
{