[Libreoffice-commits] .: unusedcode.easy vcl/inc vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Jan 16 08:21:51 PST 2012


 unusedcode.easy              |    1 -
 vcl/inc/vcl/field.hxx        |    1 -
 vcl/source/control/field.cxx |   14 --------------
 3 files changed, 16 deletions(-)

New commits:
commit d2d730f65774564f27f3f5a0d3a1ee94db21c47f
Author: Mariusz Dykierek <mariuszdykierek at gmail.com>
Date:   Mon Jan 16 16:20:43 2012 +0000

    Removed FormatterBase::SetFieldText

diff --git a/unusedcode.easy b/unusedcode.easy
index 26f593d..87e2618 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -94,7 +94,6 @@ FontSelectPattern::FontSelectPattern(ImplFontData const&, Size const&, float, in
 FontSizeBox::SetUserValue(long, FieldUnit)
 FontStyleBox::FontStyleBox(Window*, long)
 FormattedField::SetValidateText(String const&, String const*)
-FormatterBase::SetFieldText(String const&, unsigned char)
 GraphCtrl::GraphCtrl(Window*, long)
 GtkSalFrame::popIgnoreDamage()
 GtkSalFrame::pushIgnoreDamage()
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx
index 5f5e8d6..311346e 100644
--- a/vcl/inc/vcl/field.hxx
+++ b/vcl/inc/vcl/field.hxx
@@ -62,7 +62,6 @@ protected:
     SAL_DLLPRIVATE void     ImplSetText( const XubString& rText, Selection* pNewSel = NULL );
     SAL_DLLPRIVATE sal_Bool     ImplGetEmptyFieldValue() const  { return mbEmptyFieldValue; }
 
-    void                    SetFieldText( const XubString& rText, sal_Bool bKeepSelection );
     void                    SetEmptyFieldValueData( sal_Bool bValue ) { mbEmptyFieldValue = bValue; }
 
     SAL_DLLPRIVATE LocaleDataWrapper& ImplGetLocaleDataWrapper() const;
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 1538287..51c4ee2 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -387,20 +387,6 @@ const AllSettings& FormatterBase::GetFieldSettings() const
 
 // -----------------------------------------------------------------------
 
-void FormatterBase::SetFieldText( const XubString& rText, sal_Bool bKeepSelection )
-{
-    if ( mpField )
-    {
-        Selection aNewSelection( 0xFFFF, 0xFFFF );
-        if ( bKeepSelection )
-            aNewSelection = mpField->GetSelection();
-
-        ImplSetText( rText, &aNewSelection );
-    }
-}
-
-// -----------------------------------------------------------------------
-
 void FormatterBase::ImplSetText( const XubString& rText, Selection* pNewSelection )
 {
     if ( mpField )


More information about the Libreoffice-commits mailing list