From 178ce4295ba864b4dd5082eff7e3444d5cead6ca Mon Sep 17 00:00:00 2001
From: Thomas Arnhold <thomas@arnhold.org>
Date: Tue, 21 Feb 2012 23:45:01 +0100
Subject: unusedcode.easy: vcl: remove DrawNativeControlText()

---
 vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 21 ---------------------
 vcl/unx/kde/salnativewidgets-kde.cxx     | 27 ---------------------------
 vcl/unx/kde4/KDESalGraphics.hxx          | 12 ------------
 3 files changed, 60 deletions(-)

(limited to 'vcl/unx')

diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index a55d3f4f2ccf..97299151cd6f 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -903,27 +903,6 @@ sal_Bool GtkSalGraphics::drawNativeControl(    ControlType nType,
     return( returnVal );
 }
 
-/*
- * DrawNativeControlText()
- *
- *  OPTIONAL.  Draws the requested text for the control described by nPart/nState.
- *     Used if text not drawn by DrawNativeControl().
- *
- *  rControlRegion:    The bounding region of the complete control in VCL frame coordinates.
- *  aValue:          An optional value (tristate/numerical/string)
- *  rCaption:      A caption or title string (like button text etc)
- */
-sal_Bool GtkSalGraphics::drawNativeControlText(    ControlType,
-                                ControlPart,
-                                const Rectangle&,
-                                ControlState,
-                                const ImplControlValue&,
-                                const OUString& )
-{
-    return( sal_False );
-}
-
-
 /*
  * GetNativeControlRegion()
  *
diff --git a/vcl/unx/kde/salnativewidgets-kde.cxx b/vcl/unx/kde/salnativewidgets-kde.cxx
index 8ff0ce5f6463..adee91e73a32 100644
--- a/vcl/unx/kde/salnativewidgets-kde.cxx
+++ b/vcl/unx/kde/salnativewidgets-kde.cxx
@@ -1179,10 +1179,6 @@ class KDESalGraphics : public X11SalGraphics
                                     const Rectangle& rControlRegion, ControlState nState,
                                     const ImplControlValue& aValue,
                                     const OUString& aCaption );
-    virtual sal_Bool drawNativeControlText( ControlType nType, ControlPart nPart,
-                                        const Rectangle& rControlRegion, ControlState nState,
-                                        const ImplControlValue& aValue,
-                                        const OUString& aCaption );
     virtual sal_Bool getNativeControlRegion( ControlType nType, ControlPart nPart,
                                          const Rectangle& rControlRegion, ControlState nState,
                                          const ImplControlValue& aValue,
@@ -1471,29 +1467,6 @@ sal_Bool KDESalGraphics::drawNativeControl( ControlType nType, ControlPart nPart
     return bReturn;
 }
 
-
-/** Draw text on the widget.
-
-    OPTIONAL. Draws the requested text for the control described by nPart/nState.
-    Used if text is not drawn by DrawNativeControl().
-
-    @param rControlRegion
-    The bounding region of the complete control in VCL frame coordinates.
-
-    @param aValue
-    An optional value (tristate/numerical/string)
-
-    @param aCaption
-    A caption or title string (like button text etc.)
-*/
-sal_Bool KDESalGraphics::drawNativeControlText( ControlType, ControlPart,
-                                            const Rectangle&, ControlState,
-                                            const ImplControlValue&,
-                                            const OUString& )
-{
-    return sal_False;
-}
-
 /** Check if the bounding regions match.
 
     If the return value is sal_True, rNativeBoundingRegion
diff --git a/vcl/unx/kde4/KDESalGraphics.hxx b/vcl/unx/kde4/KDESalGraphics.hxx
index 2f4c3f384c75..dd4ef01f1493 100644
--- a/vcl/unx/kde4/KDESalGraphics.hxx
+++ b/vcl/unx/kde4/KDESalGraphics.hxx
@@ -78,18 +78,6 @@ class KDESalGraphics : public X11SalGraphics
                                         const ImplControlValue& aValue,
                                         const rtl::OUString& aCaption );
 
-        /** Draw text on the widget.
-            OPTIONAL. Draws the requested text for the control described by part/nControlState.
-            Used if text is not drawn by DrawNativeControl().
-
-            @param rControlRegion The bounding region of the complete control in VCL frame coordinates.
-            @param aValue An optional value (tristate/numerical/string)
-            @param aCaption A caption or title string (like button text etc.)
-        */
-        virtual sal_Bool drawNativeControlText( ControlType, ControlPart,
-                                            const Rectangle&, ControlState,
-                                            const ImplControlValue&,
-                                            const rtl::OUString& ) { return false; }
         /** Check if the bounding regions match.
 
             If the return value is TRUE, rNativeBoundingRegion
-- 
cgit