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

Jan Holesovsky kendy at kemper.freedesktop.org
Sun Aug 7 15:05:45 PDT 2011


 unusedcode.easy                 |    1 -
 vcl/inc/vcl/combobox.h          |    2 ++
 vcl/inc/vcl/combobox.hxx        |    3 +--
 vcl/source/control/combobox.cxx |    7 -------
 4 files changed, 3 insertions(+), 10 deletions(-)

New commits:
commit 04b0d7ac37bee4a8d96c45cad27f6c0c16c8ee3f
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Mon Aug 8 00:05:35 2011 +0200

    Remove unused ComboBox::SetSeparatorPos().

diff --git a/unusedcode.easy b/unusedcode.easy
index dacf1c7..7c3f2d5 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -136,7 +136,6 @@ ComboBox::GetSeparatorPos() const
 ComboBox::GetUserItemSize() const
 ComboBox::IsDDAutoWidthEnabled() const
 ComboBox::IsUserDrawEnabled() const
-ComboBox::SetSeparatorPos()
 ComboBox::ShowProminentEntry(unsigned short)
 CommandExtTextInputData::CommandExtTextInputData()
 CommandLine::get_arg(unsigned long) const
diff --git a/vcl/inc/vcl/combobox.h b/vcl/inc/vcl/combobox.h
index 387c20d..49ed8a4 100644
--- a/vcl/inc/vcl/combobox.h
+++ b/vcl/inc/vcl/combobox.h
@@ -29,6 +29,8 @@
 #ifndef _SV_COMBOBOX_H
 #define _SV_COMBOBOX_H
 
+#include <vcl/lstbox.h>
+
 #define COMBOBOX_APPEND             ((sal_uInt16)0xFFFF)
 #define COMBOBOX_ENTRY_NOTFOUND     ((sal_uInt16)0xFFFF)
 #define COMBOBOX_ERROR              ((sal_uInt16)0xFFFF)
diff --git a/vcl/inc/vcl/combobox.hxx b/vcl/inc/vcl/combobox.hxx
index 12385c9..7e1ea38 100644
--- a/vcl/inc/vcl/combobox.hxx
+++ b/vcl/inc/vcl/combobox.hxx
@@ -156,8 +156,7 @@ public:
     void            DrawEntry( const UserDrawEvent& rEvt, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos = sal_False );
     void            SetBorderStyle( sal_uInt16 nBorderStyle );
 
-    void            SetSeparatorPos( sal_uInt16 n );
-    void            SetSeparatorPos();
+    void            SetSeparatorPos( sal_uInt16 n = LISTBOX_ENTRY_NOTFOUND );
     sal_uInt16          GetSeparatorPos() const;
 
     void            EnableAutocomplete( sal_Bool bEnable, sal_Bool bMatchCase = sal_False );
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index c010927..a4a9523 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1374,13 +1374,6 @@ void ComboBox::SetSeparatorPos( sal_uInt16 n )
 
 // -----------------------------------------------------------------------
 
-void ComboBox::SetSeparatorPos()
-{
-    mpImplLB->SetSeparatorPos( LISTBOX_ENTRY_NOTFOUND );
-}
-
-// -----------------------------------------------------------------------
-
 sal_uInt16 ComboBox::GetSeparatorPos() const
 {
     return mpImplLB->GetSeparatorPos();


More information about the Libreoffice-commits mailing list