[Libreoffice-commits] core.git: basic/source chart2/source compilerplugins/clang configmgr/source dbaccess/source editeng/source extensions/source filter/source forms/source framework/inc framework/source hwpfilter/source idlc/inc idl/inc idl/source jvmfwk/source l10ntools/inc lotuswordpro/source opencl/inc registry/inc registry/source reportdesign/inc reportdesign/source rsc/inc rsc/source sc/inc sc/source solenv/gbuild

Noel Grandin noel at peralex.com
Thu Oct 1 03:43:51 PDT 2015


 basic/source/comp/codegen.cxx                              |   25 
 basic/source/inc/rtlproto.hxx                              |    5 
 basic/source/runtime/props.cxx                             |   29 -
 basic/source/sbx/sbxconv.hxx                               |    1 
 chart2/source/inc/CloneHelper.hxx                          |   21 
 chart2/source/inc/CommonFunctors.hxx                       |   15 
 chart2/source/inc/ContainerHelper.hxx                      |   40 -
 chart2/source/inc/DisposeHelper.hxx                        |    6 
 chart2/source/inc/EventListenerHelper.hxx                  |   44 -
 compilerplugins/clang/unusedmethods.cxx                    |   95 ++-
 compilerplugins/clang/unusedmethods.py                     |  274 +++-------
 configmgr/source/modifications.hxx                         |    2 
 configmgr/source/writemodfile.cxx                          |    2 
 dbaccess/source/core/dataaccess/databasecontext.hxx        |    3 
 dbaccess/source/ui/dlg/ConnectionPage.hxx                  |    3 
 dbaccess/source/ui/dlg/ConnectionPageSetup.hxx             |   10 
 dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx          |    1 
 dbaccess/source/ui/dlg/DbAdminImpl.hxx                     |    2 
 dbaccess/source/ui/dlg/RelationDlg.cxx                     |    5 
 dbaccess/source/ui/dlg/UserAdmin.hxx                       |    1 
 dbaccess/source/ui/dlg/advancedsettings.hxx                |    4 
 dbaccess/source/ui/dlg/dbfindex.hxx                        |    1 
 dbaccess/source/ui/dlg/dbwiz.cxx                           |    3 
 dbaccess/source/ui/dlg/dbwizsetup.cxx                      |    3 
 dbaccess/source/ui/inc/ConnectionLine.hxx                  |    2 
 dbaccess/source/ui/inc/JAccess.hxx                         |    2 
 dbaccess/source/ui/inc/JoinDesignView.hxx                  |    1 
 dbaccess/source/ui/inc/RTableConnectionData.hxx            |    2 
 dbaccess/source/ui/inc/RelControliFace.hxx                 |    7 
 dbaccess/source/ui/inc/RelationController.hxx              |    4 
 dbaccess/source/ui/inc/RelationDlg.hxx                     |   12 
 dbaccess/source/ui/inc/SqlNameEdit.hxx                     |    4 
 dbaccess/source/ui/inc/TableConnectionData.hxx             |    2 
 dbaccess/source/ui/inc/TableController.hxx                 |    1 
 dbaccess/source/ui/inc/TableDesignControl.hxx              |    1 
 dbaccess/source/ui/inc/TableDesignHelpBar.hxx              |    1 
 dbaccess/source/ui/inc/TableDesignView.hxx                 |    1 
 dbaccess/source/ui/inc/TableWindowAccess.hxx               |    9 
 dbaccess/source/ui/inc/TablesSingleDlg.hxx                 |    1 
 dbaccess/source/ui/inc/WCopyTable.hxx                      |    2 
 dbaccess/source/ui/inc/adtabdlg.hxx                        |    1 
 dbaccess/source/ui/inc/charsets.hxx                        |    3 
 dbaccess/source/ui/inc/dbwiz.hxx                           |   16 
 dbaccess/source/ui/inc/dbwizsetup.hxx                      |   15 
 dbaccess/source/ui/inc/indexcollection.hxx                 |    3 
 dbaccess/source/ui/inc/indexdialog.hxx                     |    4 
 dbaccess/source/ui/inc/paramdialog.hxx                     |    2 
 dbaccess/source/ui/inc/querycontroller.hxx                 |   19 
 dbaccess/source/ui/inc/unodatbr.hxx                        |    5 
 dbaccess/source/ui/querydesign/QTableConnectionData.cxx    |    5 
 dbaccess/source/ui/querydesign/QTableConnectionData.hxx    |    2 
 dbaccess/source/ui/querydesign/QTableWindow.hxx            |    2 
 dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx      |    7 
 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx      |   11 
 dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx      |    1 
 dbaccess/source/ui/querydesign/TableConnectionData.cxx     |    5 
 dbaccess/source/ui/querydesign/querycontroller.cxx         |    3 
 dbaccess/source/ui/querydesign/querydlg.cxx                |    5 
 dbaccess/source/ui/querydesign/querydlg.hxx                |    7 
 dbaccess/source/ui/relationdesign/RTableConnectionData.cxx |    5 
 dbaccess/source/ui/tabledesign/TEditControl.cxx            |   19 
 dbaccess/source/ui/tabledesign/TEditControl.hxx            |    4 
 dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx       |    2 
 editeng/source/editeng/editdoc.cxx                         |    5 
 editeng/source/editeng/editdoc.hxx                         |    1 
 extensions/source/bibliography/datman.cxx                  |   13 
 extensions/source/bibliography/datman.hxx                  |    1 
 extensions/source/propctrlr/commoncontrol.cxx              |   18 
 extensions/source/propctrlr/commoncontrol.hxx              |    3 
 extensions/source/propctrlr/pcrcommon.hxx                  |    8 
 filter/source/pdf/pdfdialog.hxx                            |    1 
 forms/source/inc/listenercontainers.hxx                    |    3 
 forms/source/xforms/NameContainer.hxx                      |    7 
 forms/source/xforms/xpathlib/xpathlib.hxx                  |    1 
 framework/inc/classes/checkediterator.hxx                  |   81 ---
 framework/inc/classes/filtercachedata.hxx                  |   21 
 framework/inc/stdtypes.h                                   |   13 
 framework/source/inc/pattern/frame.hxx                     |   11 
 framework/source/jobs/jobexecutor.cxx                      |   12 
 framework/source/services/pathsettings.cxx                 |   16 
 hwpfilter/source/hutil.cxx                                 |    9 
 hwpfilter/source/hutil.h                                   |    4 
 hwpfilter/source/hwplib.h                                  |    6 
 hwpfilter/source/list.hxx                                  |  146 -----
 idl/inc/bastype.hxx                                        |    4 
 idl/inc/command.hxx                                        |    1 
 idl/source/objects/bastype.cxx                             |    7 
 idlc/inc/idlc/idlc.hxx                                     |    1 
 jvmfwk/source/fwkutil.hxx                                  |    4 
 l10ntools/inc/xrmlex.hxx                                   |    2 
 lotuswordpro/source/filter/ut.hxx                          |   10 
 lotuswordpro/source/filter/xfilter/xfcolumns.hxx           |    4 
 lotuswordpro/source/filter/xfilter/xfutil.cxx              |   21 
 lotuswordpro/source/filter/xfilter/xfutil.hxx              |    4 
 opencl/inc/opencl_device_selection.h                       |   15 
 registry/inc/regapi.hxx                                    |  331 -------------
 registry/source/reflcnst.hxx                               |   14 
 registry/source/registry.cxx                               |   93 ---
 registry/source/regkey.cxx                                 |  219 --------
 reportdesign/inc/ReportDefinition.hxx                      |    2 
 reportdesign/inc/RptDef.hxx                                |   10 
 reportdesign/source/core/api/ReportDefinition.cxx          |    5 
 reportdesign/source/core/inc/Tools.hxx                     |    6 
 reportdesign/source/ui/inc/SectionWindow.hxx               |    2 
 rsc/inc/rsctools.hxx                                       |    2 
 rsc/source/rscpp/cpp.h                                     |    6 
 sc/inc/address.hxx                                         |    5 
 sc/inc/bigrange.hxx                                        |    3 
 sc/inc/calcconfig.hxx                                      |    2 
 sc/inc/chgtrack.hxx                                        |    7 
 sc/inc/convuno.hxx                                         |    7 
 sc/inc/mtvcellfunc.hxx                                     |   30 -
 sc/inc/mtvfunctions.hxx                                    |  149 -----
 sc/inc/rangelst.hxx                                        |    1 
 sc/source/core/tool/calcconfig.cxx                         |   32 -
 sc/source/core/tool/rangelst.cxx                           |    9 
 solenv/gbuild/LinkTarget.mk                                |    4 
 117 files changed, 200 insertions(+), 1985 deletions(-)

New commits:
commit 58aea3f36c14414f95668e229a7350598f6c53a8
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Sep 30 10:29:19 2015 +0200

    loplugin:unusedmethods
    
    - improvements to the plugin to find more method calls
    - improvements to python script to remove more false+
    - fix the FORCE_COMPILE_ALL build flag to include code in
      the $WORKDIR
    
    Change-Id: I4d6015dcb9b9d60c26f0bcee8abad807177a7836
    Reviewed-on: https://gerrit.libreoffice.org/19064
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx
index cd7c197..29fece0 100644
--- a/basic/source/comp/codegen.cxx
+++ b/basic/source/comp/codegen.cxx
@@ -468,11 +468,11 @@ class OffSetAccumulator : public PCodeVisitor< T >
 public:
 
     OffSetAccumulator() : m_nNumOp0(0), m_nNumSingleParams(0), m_nNumDoubleParams(0){}
-    virtual void start( sal_uInt8* /*pStart*/ ){}
-    virtual void processOpCode0( SbiOpcode /*eOp*/ ){ ++m_nNumOp0; }
-    virtual void processOpCode1( SbiOpcode /*eOp*/, T /*nOp1*/ ){  ++m_nNumSingleParams; }
-    virtual void processOpCode2( SbiOpcode /*eOp*/, T /*nOp1*/, T /*nOp2*/ ) { ++m_nNumDoubleParams; }
-    virtual void end(){}
+    virtual void start( sal_uInt8* /*pStart*/ ) SAL_OVERRIDE {}
+    virtual void processOpCode0( SbiOpcode /*eOp*/ ) SAL_OVERRIDE { ++m_nNumOp0; }
+    virtual void processOpCode1( SbiOpcode /*eOp*/, T /*nOp1*/ ) SAL_OVERRIDE {  ++m_nNumSingleParams; }
+    virtual void processOpCode2( SbiOpcode /*eOp*/, T /*nOp1*/, T /*nOp2*/ ) SAL_OVERRIDE { ++m_nNumDoubleParams; }
+    virtual void end() SAL_OVERRIDE {}
     S offset()
     {
         T result = 0 ;
@@ -480,25 +480,24 @@ public:
         result = m_nNumOp0 + ( ( sizeof(S) + 1 ) * m_nNumSingleParams ) + ( (( sizeof(S) * 2 )+ 1 )  * m_nNumDoubleParams );
         return std::min(static_cast<T>(max), result);
     }
-   virtual bool processParams(){ return false; }
+   virtual bool processParams() SAL_OVERRIDE { return false; }
 };
 
 
 
 template < class T, class S >
-
 class BufferTransformer : public PCodeVisitor< T >
 {
     sal_uInt8* m_pStart;
     SbiBuffer m_ConvertedBuf;
 public:
     BufferTransformer():m_pStart(NULL), m_ConvertedBuf( NULL, 1024 ) {}
-    virtual void start( sal_uInt8* pStart ){ m_pStart = pStart; }
-    virtual void processOpCode0( SbiOpcode eOp )
+    virtual void start( sal_uInt8* pStart ) SAL_OVERRIDE { m_pStart = pStart; }
+    virtual void processOpCode0( SbiOpcode eOp ) SAL_OVERRIDE
     {
         m_ConvertedBuf += (sal_uInt8)eOp;
     }
-    virtual void processOpCode1( SbiOpcode eOp, T nOp1 )
+    virtual void processOpCode1( SbiOpcode eOp, T nOp1 ) SAL_OVERRIDE
     {
         m_ConvertedBuf += (sal_uInt8)eOp;
         switch( eOp )
@@ -523,7 +522,7 @@ public:
         }
         m_ConvertedBuf += static_cast<S>(nOp1);
     }
-    virtual void processOpCode2( SbiOpcode eOp, T nOp1, T nOp2 )
+    virtual void processOpCode2( SbiOpcode eOp, T nOp1, T nOp2 ) SAL_OVERRIDE
     {
         m_ConvertedBuf += (sal_uInt8)eOp;
         if ( eOp == _CASEIS )
@@ -533,8 +532,8 @@ public:
         m_ConvertedBuf += static_cast<S>(nOp2);
 
     }
-    virtual bool processParams(){ return true; }
-    virtual void end() {}
+    virtual bool processParams() SAL_OVERRIDE { return true; }
+    virtual void end() SAL_OVERRIDE {}
     // yeuch, careful here, you can only call
     // GetBuffer on the returned SbiBuffer once, also
     // you (as the caller) get to own the memory
diff --git a/basic/source/inc/rtlproto.hxx b/basic/source/inc/rtlproto.hxx
index 7236f78..c4b1083 100644
--- a/basic/source/inc/rtlproto.hxx
+++ b/basic/source/inc/rtlproto.hxx
@@ -138,11 +138,6 @@ extern RTLFUNC(CLEAR_ALLTABS);
 extern RTLFUNC(CLEAR_TAB);
 extern RTLFUNC(SET_TAB);
 
-extern RTLFUNC(LINEPROP);
-extern RTLFUNC(LINE_1);
-extern RTLFUNC(LINE_15);
-extern RTLFUNC(LINE_2);
-
 // Methoden
 
 extern RTLFUNC(CreateObject);
diff --git a/basic/source/runtime/props.cxx b/basic/source/runtime/props.cxx
index 78bd326..221ac96 100644
--- a/basic/source/runtime/props.cxx
+++ b/basic/source/runtime/props.cxx
@@ -727,35 +727,6 @@ RTLFUNC(SET_TAB)
     rPar.Get(0)->PutInteger(0);
 }
 
-RTLFUNC(LINEPROP)
-{
-    (void)pBasic;
-    (void)bWrite;
-
-    rPar.Get(0)->PutInteger(0);
-}
-RTLFUNC(LINE_1)
-{
-    (void)pBasic;
-    (void)bWrite;
-
-    rPar.Get(0)->PutInteger(1);
-}
-RTLFUNC(LINE_15)
-{
-    (void)pBasic;
-    (void)bWrite;
-
-    rPar.Get(0)->PutInteger(2);
-}
-RTLFUNC(LINE_2)
-{
-    (void)pBasic;
-    (void)bWrite;
-
-    rPar.Get(0)->PutInteger(3);
-}
-
 RTLFUNC(TYP_JUMPEDITFLD)
 {
     (void)pBasic;
diff --git a/basic/source/sbx/sbxconv.hxx b/basic/source/sbx/sbxconv.hxx
index a69b767..c14a3ac 100644
--- a/basic/source/sbx/sbxconv.hxx
+++ b/basic/source/sbx/sbxconv.hxx
@@ -48,7 +48,6 @@ void        ImpPutUInt64( SbxValues*, sal_uInt64 );
 
 sal_Int64   ImpDoubleToSalInt64 ( double d );
 sal_uInt64  ImpDoubleToSalUInt64( double d );
-double      ImpSalInt64ToDouble ( sal_Int64 n );
 double      ImpSalUInt64ToDouble( sal_uInt64 n );
 
 // SBXLNG.CXX
diff --git a/chart2/source/inc/CloneHelper.hxx b/chart2/source/inc/CloneHelper.hxx
index 2545f57..24e5f1c 100644
--- a/chart2/source/inc/CloneHelper.hxx
+++ b/chart2/source/inc/CloneHelper.hxx
@@ -77,27 +77,6 @@ template< class Interface >
                       CreateRefClone< Interface >());
 }
 
-template< typename  Key, class Interface >
-    void CloneRefPairVector(
-        const ::std::vector< ::std::pair< Key, Interface > > & rSource,
-        ::std::vector< ::std::pair< Key, Interface > > & rDestination )
-{
-    ::std::transform( rSource.begin(), rSource.end(),
-                      ::std::back_inserter( rDestination ),
-                      CreateRefWithKeyClone< Key, Interface >());
-}
-
-/// clones a map of elements with a UNO-Reference as value
-template< typename Key, class Interface >
-    void CloneRefMap(
-        const ::std::map< Key, Interface > & rSource,
-        ::std::map< Key, Interface > & rDestination )
-{
-    ::std::transform( rSource.begin(), rSource.end(),
-                      ::std::inserter( rDestination, rDestination.begin() ),
-                      CreateRefWithKeyClone< const Key, Interface >());
-}
-
 /// clones a UNO-sequence of UNO-References
 template< class Interface >
     void CloneRefSequence(
diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx
index d998069..8904173 100644
--- a/chart2/source/inc/CommonFunctors.hxx
+++ b/chart2/source/inc/CommonFunctors.hxx
@@ -174,21 +174,6 @@ private:
     Value m_aValueToCompareWith;
 };
 
-/** Searches for data in a given map, i.e. not for the key but for the data
-    pointed to by the keys.
-
-    To find a key (value) you can use rMap.find( rValue )
- */
-template< class MapType >
-    inline typename MapType::const_iterator
-    findValueInMap( const MapType & rMap, const typename MapType::mapped_type & rData )
-{
-    return ::std::find_if( rMap.begin(), rMap.end(),
-            [&rData]
-            ( const typename MapType::value_type& cp )
-            { return rData == cp.second; } );
-}
-
 } //  namespace CommonFunctors
 } //  namespace chart
 
diff --git a/chart2/source/inc/ContainerHelper.hxx b/chart2/source/inc/ContainerHelper.hxx
index 4f3232b..7c7284a 100644
--- a/chart2/source/inc/ContainerHelper.hxx
+++ b/chart2/source/inc/ContainerHelper.hxx
@@ -73,32 +73,6 @@ template< class Container >
     return aResult;
 }
 
-/** converts a UNO sequence into a standard container. For convenience see the
-    methods SequenceToVector, etc. below. (In contrast to
-    SequenceToSTLSequenceContainer this works for all standard containers)
-
-    input:  uno::Sequence
-    output: a standard container that has an insert( iterator, key ) method (all
-            standard containers)
-    note:   for containers implementing the Concept of a Sequence (vector, deque,
-            list, slist) use SequenceToSTLSequenceContainer for better speed
-
-    example:
-
-    Sequence< sal_Int32 > aSequence;
-    ::std::set< sal_Int32 > aVector(
-        ContainerToSequence::SequenceToSTLContainer< ::std::set< sal_Int32 > >( aSequence );
-*/
-template< class Container >
-    Container
-    SequenceToSTLContainer( const ::com::sun::star::uno::Sequence< typename Container::value_type > & rSeq )
-{
-    Container aResult;
-    ::std::copy( rSeq.begin(), rSeq.end(),
-                 ::std::inserter< Container >( aResult, aResult.begin()));
-    return aResult;
-}
-
 // concrete container methods for convenience
 
 /** converts a UNO sequence into a standard vector of same value type
@@ -115,20 +89,6 @@ template< typename T >
     return SequenceToSTLSequenceContainer< ::std::vector< T > >( rSeq );
 }
 
-/** converts a UNO sequence into a standard set of same value type
-
-    example:
-
-    Sequence< sal_Int32 > aSequence;
-    ::std::set< sal_Int32 > aVector( ContainerHelper::SequenceToSet( aSequence ));
- */
-template< typename T >
-    ::std::set< T >
-    SequenceToSet( const ::com::sun::star::uno::Sequence< T > & rSeq )
-{
-    return SequenceToSTLContainer< ::std::set< T > >( rSeq );
-}
-
 /** converts the keys of a Pair Associative Container into a UNO sequence
 
     example:
diff --git a/chart2/source/inc/DisposeHelper.hxx b/chart2/source/inc/DisposeHelper.hxx
index d89d31e..44b54ed 100644
--- a/chart2/source/inc/DisposeHelper.hxx
+++ b/chart2/source/inc/DisposeHelper.hxx
@@ -80,12 +80,6 @@ template< class Container >
     ::std::for_each( rContainer.begin(), rContainer.end(), DisposeFunctor< typename Container::value_type >());
 }
 
-template< class Map >
-    void DisposeAllMapElements( Map & rContainer )
-{
-    ::std::for_each( rContainer.begin(), rContainer.end(), DisposeSecondOfPairFunctor< typename Map::value_type >());
-}
-
 } //  namespace DisposeHelper
 } //  namespace chart
 
diff --git a/chart2/source/inc/EventListenerHelper.hxx b/chart2/source/inc/EventListenerHelper.hxx
index 8872eb8..6fe8b9f 100644
--- a/chart2/source/inc/EventListenerHelper.hxx
+++ b/chart2/source/inc/EventListenerHelper.hxx
@@ -137,28 +137,6 @@ void addListenerToAllElements(
                          impl::addListenerFunctor< typename Container::value_type >( xListener ));
 }
 
-template< class Container >
-void addListenerToAllMapElements(
-    const Container & rContainer,
-    const ::com::sun::star::uno::Reference<
-        ::com::sun::star::lang::XEventListener > & xListener )
-{
-    if( xListener.is())
-        ::std::for_each( rContainer.begin(), rContainer.end(),
-                         impl::addListenerToMappedElementFunctor< typename Container::value_type >( xListener ));
-}
-
-template< typename T >
-void addListenerToAllSequenceElements(
-    const ::com::sun::star::uno::Sequence< T > & rSequence,
-    const ::com::sun::star::uno::Reference<
-        ::com::sun::star::lang::XEventListener > & xListener )
-{
-    if( xListener.is())
-        ::std::for_each( rSequence.getConstArray(), rSequence.getConstArray() + rSequence.getLength(),
-                         impl::addListenerFunctor< T >( xListener ));
-}
-
 template< class InterfaceRef >
 void removeListener(
     const InterfaceRef & xObject,
@@ -183,28 +161,6 @@ void removeListenerFromAllElements(
                          impl::removeListenerFunctor< typename Container::value_type >( xListener ));
 }
 
-template< class Container >
-void removeListenerFromAllMapElements(
-    const Container & rContainer,
-    const ::com::sun::star::uno::Reference<
-        ::com::sun::star::lang::XEventListener > & xListener )
-{
-    if( xListener.is())
-        ::std::for_each( rContainer.begin(), rContainer.end(),
-                         impl::removeListenerFromMappedElementFunctor< typename Container::value_type >( xListener ));
-}
-
-template< typename T >
-void removeListenerFromAllSequenceElements(
-    const ::com::sun::star::uno::Sequence< T > & rSequence,
-    const ::com::sun::star::uno::Reference<
-        ::com::sun::star::lang::XEventListener > & xListener )
-{
-    if( xListener.is())
-        ::std::for_each( rSequence.getConstArray(), rSequence.getConstArray() + rSequence.getLength(),
-                         impl::removeListenerFunctor< T >( xListener ));
-}
-
 } //  namespace EventListenerHelper
 } //  namespace chart
 
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index fa62ce5..31ff68d 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -39,9 +39,27 @@ TODO deal with calls to superclass/member constructors from other constructors,
 
 namespace {
 
+struct MyFuncInfo
+{
+    std::string returnType;
+    std::string nameAndParams;
+    std::string sourceLocation;
+
+    bool operator < (const MyFuncInfo &other) const
+    {
+        if (returnType < other.returnType)
+            return true;
+        else if (returnType == other.returnType)
+            return nameAndParams < other.nameAndParams;
+        else
+            return false;
+    }
+};
+
+
 // try to limit the voluminous output a little
-static std::set<std::string> callSet;
-static std::set<std::string> definitionSet;
+static std::set<MyFuncInfo> callSet;
+static std::set<MyFuncInfo> definitionSet;
 
 
 class UnusedMethods:
@@ -57,10 +75,10 @@ public:
         // dump all our output in one write call - this is to try and limit IO "crosstalk" between multiple processes
         // writing to the same logfile
         std::string output;
-        for (const std::string & s : callSet)
-            output += "call:\t" + s + "\t\n";
-        for (const std::string & s : definitionSet)
-            output += "definition:\t" + s + "\t\n";
+        for (const MyFuncInfo & s : callSet)
+            output += "call:\t" + s.returnType + "\t" + s.nameAndParams + "\n";
+        for (const MyFuncInfo & s : definitionSet)
+            output += "definition:\t" + s.returnType + "\t" + s.nameAndParams + "\t" + s.sourceLocation + "\n";
         ofstream myfile;
         myfile.open( SRCDIR "/unusedmethods.log", ios::app | ios::out);
         myfile << output;
@@ -72,9 +90,12 @@ public:
     bool VisitDeclRefExpr( const DeclRefExpr* );
     bool VisitCXXConstructExpr( const CXXConstructExpr* );
     bool VisitVarDecl( const VarDecl* );
+private:
+    void logCallToRootMethods(const FunctionDecl* functionDecl);
+    MyFuncInfo niceName(const FunctionDecl* functionDecl);
 };
 
-static std::string niceName(const FunctionDecl* functionDecl)
+MyFuncInfo UnusedMethods::niceName(const FunctionDecl* functionDecl)
 {
     if (functionDecl->getInstantiatedFromMemberFunction())
         functionDecl = functionDecl->getInstantiatedFromMemberFunction();
@@ -86,31 +107,36 @@ static std::string niceName(const FunctionDecl* functionDecl)
         functionDecl = functionDecl->getTemplateInstantiationPattern();
 #endif
 
-    std::string s =
-        compat::getReturnType(*functionDecl).getCanonicalType().getAsString()
-        + " ";
+    MyFuncInfo aInfo;
+    aInfo.returnType = compat::getReturnType(*functionDecl).getCanonicalType().getAsString();
+
     if (isa<CXXMethodDecl>(functionDecl)) {
         const CXXRecordDecl* recordDecl = dyn_cast<CXXMethodDecl>(functionDecl)->getParent();
-        s += recordDecl->getQualifiedNameAsString();
-        s += "::";
+        aInfo.nameAndParams += recordDecl->getQualifiedNameAsString();
+        aInfo.nameAndParams += "::";
     }
-    s += functionDecl->getNameAsString() + "(";
+    aInfo.nameAndParams += functionDecl->getNameAsString() + "(";
     bool bFirst = true;
     for (const ParmVarDecl *pParmVarDecl : functionDecl->params()) {
         if (bFirst)
             bFirst = false;
         else
-            s += ",";
-        s += pParmVarDecl->getType().getCanonicalType().getAsString();
+            aInfo.nameAndParams += ",";
+        aInfo.nameAndParams += pParmVarDecl->getType().getCanonicalType().getAsString();
     }
-    s += ")";
+    aInfo.nameAndParams += ")";
     if (isa<CXXMethodDecl>(functionDecl) && dyn_cast<CXXMethodDecl>(functionDecl)->isConst()) {
-        s += " const";
+        aInfo.nameAndParams += " const";
     }
-    return s;
+
+    SourceLocation expansionLoc = compiler.getSourceManager().getExpansionLoc( functionDecl->getLocation() );
+    StringRef name = compiler.getSourceManager().getFilename(expansionLoc);
+    aInfo.sourceLocation = std::string(name.substr(strlen(SRCDIR)+1)) + ":" + std::to_string(compiler.getSourceManager().getSpellingLineNumber(expansionLoc));
+
+    return aInfo;
 }
 
-static void logCallToRootMethods(const FunctionDecl* functionDecl)
+void UnusedMethods::logCallToRootMethods(const FunctionDecl* functionDecl)
 {
     functionDecl = functionDecl->getCanonicalDecl();
     bool bPrinted = false;
@@ -127,8 +153,7 @@ static void logCallToRootMethods(const FunctionDecl* functionDecl)
     }
     if (!bPrinted)
     {
-        std::string s = niceName(functionDecl);
-        callSet.insert(s);
+        callSet.insert(niceName(functionDecl));
     }
 }
 
@@ -170,8 +195,36 @@ bool UnusedMethods::VisitCallExpr(CallExpr* expr)
 
     FunctionDecl* calleeFunctionDecl = expr->getDirectCallee();
     if (calleeFunctionDecl == nullptr) {
+        Expr* callee = expr->getCallee()->IgnoreParenImpCasts();
+        DeclRefExpr* dr = dyn_cast<DeclRefExpr>(callee);
+        if (dr) {
+            calleeFunctionDecl = dyn_cast<FunctionDecl>(dr->getDecl());
+            if (calleeFunctionDecl)
+                goto gotfunc;
+        }
+        /*
+        // ignore case where we can't determine the target of the call because we're inside a template
+        if (isa<CXXDependentScopeMemberExpr>(callee))
+            return true;
+        if (isa<UnresolvedLookupExpr>(callee))
+            return true;
+        if (isa<UnresolvedMemberExpr>(callee))
+            return true;
+        if (isa<DependentScopeDeclRefExpr>(callee))
+            return true;
+        // ignore this, doesn't really exist (side-effect of template expansion on scalar types)
+        if (isa<CXXPseudoDestructorExpr>(callee))
+            return true;
+        expr->dump();
+        std::string name = compiler.getSourceManager().getFilename(expansionLoc);
+        std::string sourceLocation = name + ":" + std::to_string(compiler.getSourceManager().getSpellingLineNumber(expansionLoc));
+        cout << sourceLocation << endl;
+        throw "Cant touch this";
+        */
         return true;
     }
+
+gotfunc:
     // if we see a call to a function, it may effectively create new code,
     // if the function is templated. However, if we are inside a template function,
     // calling another function on the same template, the same problem occurs.
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py
index 3bc61b8..f2b9e5c 100755
--- a/compilerplugins/clang/unusedmethods.py
+++ b/compilerplugins/clang/unusedmethods.py
@@ -1,8 +1,10 @@
 #!/usr/bin/python
 
 import sys
+import re
 
 definitionSet = set()
+definitionToSourceLocationMap = dict()
 callSet = set()
 # things we need to exclude for reasons like :
 # - it's a weird template thingy that confuses the plugin
@@ -18,91 +20,6 @@ exclusionSet = set([
     "class XMLPropertyBackpatcher<short> & XMLTextImportHelper::GetSequenceIdBP()",
     "void XclExpPivotCache::SaveXml(class XclExpXmlStream &)",
 
-    # used from a yacc lexer
-    "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Float(double)",
-    "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Int(long)",
-    "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Uint(unsigned long)",
-    "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Bool(_Bool)",
-    "class rtl::OUString unoidl::detail::SourceProviderType::getName() const",
-    "_Bool unoidl::detail::SourceProviderType::equals(const struct unoidl::detail::SourceProviderType &) const",
-    "_Bool unoidl::detail::SourceProviderEntityPad::isPublished() const",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::checkMemberClashes(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &,const class rtl::OUString &,_Bool) const",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::checkBaseClashes(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &,const class rtl::Reference<class unoidl::InterfaceTypeEntity> &,_Bool,_Bool,_Bool,class std::__debug::set<class rtl::OUString, struct std::less<class rtl::OUString>, class std::allocator<class rtl::OUString> > *) const",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addDirectBase(int,void *,struct unoidl::detail::SourceProviderScannerData *,const struct unoidl::detail::SourceProviderInterfaceTypeEntityPad::DirectBase &,_Bool)",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addBase(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &,const class rtl::OUString &,const class rtl::Reference<class unoidl::InterfaceTypeEntity> &,_Bool,_Bool)",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addDirectMember(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &)",
-    "_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addOptionalBaseMembers(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &,const class rtl::Reference<class unoidl::InterfaceTypeEntity> &)",
-    "void unoidl::detail::SourceProviderScannerData::setSource(const void *,unsigned long)",
-    "void Idlc::setParseState(enum ParseState)",
-    "_Bool AstDeclaration::isPredefined()",
-    "void Idlc::setOffset(unsigned int,unsigned int)",
-    "_Bool Idlc::isInMainFile()",
-    "void Idlc::setPublished(_Bool)",
-    "enum ParseState Idlc::getParseState()",
-    "void Idlc::setLineNumber(unsigned int)",
-    "void Idlc::incLineNumber()",
-    "void Idlc::setDocumentation(const class rtl::OString &)",
-    "void Idlc::setInMainfile(_Bool)",
-    "void AstInterface::forwardDefined(const class AstInterface &)",
-    "_Bool AstInterface::hasMandatoryInheritedInterfaces() const",
-    "_Bool AstInterface::usesSingleInheritance() const",
-    "struct AstInterface::DoubleDeclarations AstInterface::checkInheritedInterfaceClashes(const class AstInterface *,_Bool) const",
-    "class std::__debug::vector<struct AstInterface::DoubleMemberDeclaration, class std::allocator<struct AstInterface::DoubleMemberDeclaration> > AstInterface::checkMemberClashes(const class AstDeclaration *) const",
-    "void AstOperation::setExceptions(const class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > *)",
-    "_Bool AstOperation::isConstructor() const",
-    "_Bool AstService::isSingleInterfaceBasedService() const",
-    "void AstService::setSingleInterfaceBasedService()",
-    "void AstService::setDefaultConstructor(_Bool)",
-    "_Bool AstService::checkLastConstructor() const",
-    "class AstScope * AstStack::nextToTop()",
-    "class AstScope * AstStack::bottom()",
-    "const class AstDeclaration * AstStruct::findTypeParameter(const class rtl::OString &) const",
-    "int AstEnum::getEnumValueCount()",
-    "class AstConstant * AstEnum::checkValue(class AstExpression *)",
-    "void ErrorHandler::flagError(enum ErrorCode,unsigned int)",
-    "void ErrorHandler::error0(enum ErrorCode)",
-    "void ErrorHandler::syntaxError(enum ParseState,int,const char *)",
-    "void ErrorHandler::lookupError(enum ErrorCode,const class rtl::OString &,class AstDeclaration *)",
-    "void ErrorHandler::error3(enum ErrorCode,class AstDeclaration *,class AstDeclaration *,class AstDeclaration *)",
-    "void ErrorHandler::warning0(enum WarningCode,const char *)",
-    "void ErrorHandler::coercionError(class AstExpression *,enum ExprType)",
-    "class AstDeclaration * FeInheritanceHeader::getInherits()",
-    "const class std::__debug::vector<class rtl::OString, class std::allocator<class rtl::OString> > & FeInheritanceHeader::getTypeParameters() const",
-    "const class AstType * FeDeclarator::compose(const class AstDeclaration *)",
-    "const class AstType * AstStructInstance::getTypeTemplate() const",
-    "class __gnu_debug::_Safe_iterator<struct std::__cxx1998::_List_const_iterator<class AstDeclaration *>, class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > > AstStructInstance::getTypeArgumentsBegin() const",
-    "class __gnu_debug::_Safe_iterator<struct std::__cxx1998::_List_const_iterator<class AstDeclaration *>, class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > > AstStructInstance::getTypeArgumentsEnd() const",
-    "void AstAttribute::setExceptions(const class rtl::OUString *,const class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > *,const class rtl::OUString *,const class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > *)",
-
-    "const class rtl::OString & FeDeclarator::getName()",
-    "_Bool FeDeclarator::checkType(const class AstDeclaration *)",
-    "enum connectivity::IParseContext::InternationalKeyCode connectivity::IParseContext::getIntlKeyCode(const class rtl::OString &) const",
-    "void connectivity::OSQLParser::error(const char *)",
-    "int connectivity::OSQLParser::SQLlex()",
-    "void connectivity::OSQLParseNode::insert(unsigned int,class connectivity::OSQLParseNode *)",
-    "const class rtl::OUString & connectivity::OSQLParser::getFieldName() const",
-    "short connectivity::OSQLParser::buildLikeRule(class connectivity::OSQLParseNode *,class connectivity::OSQLParseNode *&,const class connectivity::OSQLParseNode *)",
-    "void connectivity::OSQLParser::reduceLiteral(class connectivity::OSQLParseNode *&,_Bool)",
-    "short connectivity::OSQLParser::buildComparsionRule(class connectivity::OSQLParseNode *&,class connectivity::OSQLParseNode *)",
-    "enum connectivity::IParseContext::InternationalKeyCode connectivity::OSQLScanner::getInternationalTokenID(const char *) const",
-    "class rtl::OString connectivity::OSQLScanner::getStatement() const",
-    "void connectivity::OSQLScanner::SQLyyerror(const char *)",
-    "int connectivity::OSQLScanner::GetCurrentPos() const",
-    "int connectivity::OSQLScanner::SQLyygetc()",
-    "void connectivity::OSQLParser::setParseTree(class connectivity::OSQLParseNode *)",
-    "short connectivity::OSQLParser::buildPredicateRule(class connectivity::OSQLParseNode *&,class connectivity::OSQLParseNode *const,class connectivity::OSQLParseNode *,class connectivity::OSQLParseNode *)",
-    "int connectivity::OSQLScanner::SQLlex()",
-
-    "const struct RSCINST & ObjectStack::Top()",
-    "void ObjectStack::Push(struct RSCINST)",
-    "_Bool RefNode::PutObjNode(class ObjNode *)",
-    "void RscFileInst::SetFileIndex(unsigned long)",
-    "void RscFileInst::SetLineNo(unsigned int)",
-    "class RscDefine * RscFileTab::NewDef(unsigned long,const class rtl::OString &,class RscExpression *,unsigned long)",
-    "class RscDefine * RscFileTab::NewDef(unsigned long,const class rtl::OString &,int,unsigned long)",
-    "class RscTop * RscTypCont::GetRoot()",
-    "class RscTop * RscTypCont::SearchType(unsigned int)",
-    "void RscTypCont::InsertType(class RscTop *)",
 
     # TODO track instantiations of template class constructors
     "void comphelper::IEventProcessor::release()",
@@ -149,68 +66,6 @@ exclusionSet = set([
     "void oox::PropertyMap::dumpCode(class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet>)",
     "void oox::PropertyMap::dumpData(class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet>)",
     "class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char> > writerfilter::ooxml::OOXMLPropertySet::toString()",
-    # called from the writerfilter generated code in $WORKDIR, not sure why it is not being picked up
-    "_Bool writerfilter::ooxml::OOXMLFactory_ns::getElementId(unsigned int,unsigned int,enum writerfilter::ooxml::ResourceType_t &,unsigned int &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setDefaultIntegerValue()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::positivePercentage(const class rtl::OUString &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::positionOffset(const class rtl::OUString &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::alignH(const class rtl::OUString &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::alignV(const class rtl::OUString &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setDefaultStringValue()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::clearProps()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::sendPropertiesWithId(const unsigned int &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::cr()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::softHyphen()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::noBreakHyphen()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setDefaultBooleanValue()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::endField()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::propagateCharacterPropertiesAsSet(const unsigned int &)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::tab()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::ftnednref()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::ftnednsep()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::ftnedncont()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::pgNum()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::sendRowProperties()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setLastSectionGroup()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::endTxbxContent()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setDefaultHexValue()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleComment()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleOLE()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handlePicture()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleHdrFtr()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleBreak()",
-    "int writerfilter::ooxml::OOXMLPropertySetEntryToInteger::getValue() const",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::fieldSeparator()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::startField()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerStream::sendProperty(unsigned int)",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleXNotes()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::propagateTableProperties()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerTextTableRow::endRow()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::propagateCellProperties()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::endSdt()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerTextTableCell::endCell()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::propagateRowProperties()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::sendTableProperties()",
-    "_Bool writerfilter::ooxml::OOXMLPropertySetEntryToBool::getValue() const",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::lockField()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerStream::handleHyperlink()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setLastParagraphInSection()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::startSdt()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setHandle()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::sendTableDepth() const",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::startTxbxContent()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::handleLastParagraphInSection()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerTextTableCell::startCell()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerTextTableRow::startRow()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::propagateCharacterProperties()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerProperties::handleFontRel()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::ignore()",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::resolvePropertySetAttrs()",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerXNote::checkId(class std::shared_ptr<class writerfilter::ooxml::OOXMLValue>)",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerTextTableRow::handleGridBefore(class std::shared_ptr<class writerfilter::ooxml::OOXMLValue>)",
-    "void writerfilter::ooxml::OOXMLFastContextHandlerXNote::checkType(class std::shared_ptr<class writerfilter::ooxml::OOXMLValue>)",
-    "void writerfilter::ooxml::OOXMLFastContextHandler::setXNoteId(class std::shared_ptr<class writerfilter::ooxml::OOXMLValue>)",
-
     # deep template magic in SW
     "Ring<value_type> * sw::Ring::Ring_node_traits::get_next(const Ring<value_type> *)",
     "Ring<value_type> * sw::Ring::Ring_node_traits::get_previous(const Ring<value_type> *)",
@@ -219,79 +74,118 @@ exclusionSet = set([
     # I need to teach the plugin that for loops with range expressions call begin() and end()
     "class __gnu_debug::_Safe_iterator<class __gnu_cxx::__normal_iterator<class SwAnchoredObject *const *, class std::__cxx1998::vector<class SwAnchoredObject *, class std::allocator<class SwAnchoredObject *> > >, class std::__debug::vector<class SwAnchoredObject *, class std::allocator<class SwAnchoredObject *> > > SwSortedObjs::begin() const",
     "class __gnu_debug::_Safe_iterator<class __gnu_cxx::__normal_iterator<class SwAnchoredObject *const *, class std::__cxx1998::vector<class SwAnchoredObject *, class std::allocator<class SwAnchoredObject *> > >, class std::__debug::vector<class SwAnchoredObject *, class std::allocator<class SwAnchoredObject *> > > SwSortedObjs::end() const",
+    # loaded by dlopen()
+    "void * getStandardAccessibleFactory()",
+    "void * getSvtAccessibilityComponentFactory()",
+    "struct _rtl_uString * basicide_choose_macro(void *,unsigned char,struct _rtl_uString *)",
+    "void basicide_macro_organizer(short)",
+    "long basicide_handle_basic_error(void *)",
+    "class com::sun::star::uno::XInterface * org_libreoffice_chart2_Chart2ToolboxController(class com::sun::star::uno::XComponentContext *,const class com::sun::star::uno::Sequence<class com::sun::star::uno::Any> &)",
+    "class com::sun::star::uno::XInterface * org_libreoffice_comp_chart2_sidebar_ChartPanelFactory(class com::sun::star::uno::XComponentContext *,const class com::sun::star::uno::Sequence<class com::sun::star::uno::Any> &)",
+    "class chart::opengl::OpenglShapeFactory * getOpenglShapeFactory()",
+    "class VclAbstractDialogFactory * CreateDialogFactory()",
+    "_Bool GetSpecialCharsForEdit(class vcl::Window *,const class vcl::Font &,class rtl::OUString &)",
+    "const struct ImplTextEncodingData * sal_getFullTextEncodingData(unsigned short)"
     ])
 
 
-# The parsing here is designed to also grab output which is mixed into the output from gbuild.
+# The parsing here is designed to avoid grabbing stuff which is mixed in from gbuild.
 # I have not yet found a way of suppressing the gbuild output.
 with open(sys.argv[1]) as txt:
     for line in txt:
-        if line.find("definition:\t") != -1:
-            idx1 = line.find("definition:\t")
-            idx2 = line.find("\t", idx1+12)
-            clazzName = line[idx1+12 : idx2]
-            definitionSet.add(clazzName)
-        elif line.find("call:\t") != -1:
-            idx1 = line.find("call:\t")
-            idx2 = line.find("\t", idx1+6)
-            clazzName = line[idx1+6 : idx2]
-            callSet.add(clazzName)
+        if line.startswith("definition:\t"):
+            tokens = line.split("\t")
+            funcInfo = (tokens[1], tokens[2])
+            definitionSet.add(funcInfo)
+            definitionToSourceLocationMap[funcInfo] = tokens[3].strip()
+        elif line.startswith("call:\t"):
+            tokens = line.split("\t")
+            callSet.add((tokens[1], tokens[2].strip()))
 
-for clazz in sorted(definitionSet - callSet - exclusionSet):
+tmp1set = set()
+for d in definitionSet:
+    clazz = d[0] + " " + d[1]
+    if clazz in exclusionSet:
+        continue
+    if d in callSet:
+        continue
     # ignore operators, they are normally called from inside STL code
-    if (clazz.find("::operator") != -1):
+    if "::operator" in d[1]:
         continue
     # ignore the custom RTTI stuff
-    if (    (clazz.find("::CreateType()") != -1)
-         or (clazz.find("::IsA(") != -1)
-         or (clazz.find("::Type()") != -1)):
+    if (    ("::CreateType()" in d[1])
+        or ("::IsA(" in d[1])
+        or ("::Type()" in d[1])):
         continue
     # if this method is const, and there is a non-const variant of it, and the non-const variant is in use, then leave it alone
-    if (clazz.startswith("const ") and clazz.endswith(" const")):
-        clazz2 = clazz[6:len(clazz)-6]
-        if (clazz2 in callSet):
+    if d[0].startswith("const ") and d[1].endswith(" const"):
+        if ((d[0][6:],d[1][:-6]) in callSet):
            continue
-    elif (clazz.endswith(" const")):
+    elif clazz.endswith(" const"):
         clazz2 = clazz[:len(clazz)-6] # strip off " const"
-        if (clazz2 in callSet):
+        if ((d[0],clazz2) in callSet):
            continue
-    if (clazz.endswith(" const") and clazz.find("::iterator") != -1):
+    if clazz.endswith(" const") and ("::iterator" in clazz):
         clazz2 = clazz[:len(clazz)-6] # strip off " const"
         clazz2 = clazz2.replace("::const_iterator", "::iterator")
-        if (clazz2 in callSet):
+        if ((d[0],clazz2) in callSet):
            continue
     # if this method is non-const, and there is a const variant of it, and the const variant is in use, then leave it alone
-    if ((not clazz.endswith(" const")) and ("const " + clazz + " const") in callSet):
+    if (not clazz.endswith(" const")) and ((d[0],"const " + clazz + " const") in callSet):
        continue
-    if ((not clazz.endswith(" const")) and clazz.find("::iterator") != -1):
+    if (not clazz.endswith(" const")) and ("::iterator" in clazz):
         clazz2 = clazz.replace("::iterator", "::const_iterator") + " const"
-        if (clazz2 in callSet):
+        if ((d[0],clazz2) in callSet):
            continue
     # There is lots of macro magic going on in SRCDIR/include/sax/fshelper.hxx that should be using C++11 varag templates
-    if clazz.startswith("void sax_fastparser::FastSerializerHelper::"):
+    if d[1].startswith("sax_fastparser::FastSerializerHelper::"):
        continue
     # used by Windows build
-    if (clazz.find("DdeTopic::") != -1 
-        or clazz.find("DdeData::") != -1
-        or clazz.find("DdeService::") != -1
-        or clazz.find("DdeTransaction::") != -1
-        or clazz.find("DdeConnection::") != -1
-        or clazz.find("DdeLink::") != -1
-        or clazz.find("DdeItem::") != -1
-        or clazz.find("DdeGetPutItem::") != -1):
+    if any(x in d[1] for x in ["DdeTopic::", "DdeData::", "DdeService::", "DdeTransaction::", "DdeConnection::", "DdeLink::", "DdeItem::", "DdeGetPutItem::"]):
        continue
     # the include/tools/rtti.hxx stuff
-    if (clazz.find("::StaticType()") != -1
-        or clazz.find("::IsOf(void *(*)(void))") != -1):
+    if ("::StaticType()" in d[1]) or ("::IsOf(void *(*)(void))" in d[1]):
        continue
     # too much template magic here for my plugin
-    if (clazz.find(" cairocanvas::") != -1 
-        or clazz.find(" canvas::") != -1
-        or clazz.find(" oglcanvas::") != -1
-        or clazz.find(" vclcanvas::") != -1):
+    if (   ("cairocanvas::" in d[1])
+        or ("canvas::" in d[1])
+        or ("oglcanvas::" in d[1])
+        or ("vclcanvas::" in d[1])):
        continue
-    print clazz
-    
+    # these are loaded by dlopen() from somewhere
+    if "get_implementation" in d[1]:
+       continue
+    if "component_getFactory" in d[1]:
+       continue
+    if d[0]=="_Bool" and "_supportsService(const class rtl::OUString &)" in d[1]:
+       continue
+    if (d[0]=="class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface>"
+        and "Instance(const class com::sun::star::uno::Reference<class com::sun::star::lang::XMultiServiceFactory> &)" in d[1]):
+       continue
+    # ignore the Java symbols, loaded from the JavaVM
+    if d[1].startswith("Java_"):
+       continue
+    # ignore external code
+    if definitionToSourceLocationMap[d].startswith("external/"):
+       continue
+    # ignore the VCL_BUILDER_DECL_FACTORY stuff
+    if d[0]=="void" and d[1].startswith("make") and ("(class VclPtr<class vcl::Window> &" in d[1]):
+       continue
+
+    tmp1set.add((clazz, definitionToSourceLocationMap[d]))
+
+def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):
+    return [int(text) if text.isdigit() else text.lower()
+            for text in re.split(_nsre, s)]
+
+# sort results by name and line number
+tmp1list = sorted(tmp1set, key=lambda v: natural_sort_key(v[1]))
+
+# print out the results
+for t in tmp1list:
+    print t[1]
+    print "    ", t[0]
+
     
 
 # add an empty line at the end to make it easier for the unusedmethodsremove plugin to mmap() the output file 
diff --git a/configmgr/source/modifications.hxx b/configmgr/source/modifications.hxx
index 098992d..04ad5c3 100644
--- a/configmgr/source/modifications.hxx
+++ b/configmgr/source/modifications.hxx
@@ -45,8 +45,6 @@ public:
 
     void remove(Path const & path);
 
-    void clear() { root_.children.clear(); }
-
     bool empty() const { return root_.children.empty(); }
 
     Node const & getRoot() const { return root_;}
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 3d8cc8b..056041d 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -153,7 +153,7 @@ void writeData_(TempFile &handle, char const * begin, sal_Int32 length) {
 }
 
 void writeValueContent_(TempFile &, bool) SAL_DELETED_FUNCTION;
-    // silence lopluign:salbool
+    // silence loplugin:salbool
 void writeValueContent_(TempFile &handle, sal_Bool value) {
     if (value) {
         writeData_(handle, RTL_CONSTASCII_STRINGPARAM("true"));
diff --git a/dbaccess/source/core/dataaccess/databasecontext.hxx b/dbaccess/source/core/dataaccess/databasecontext.hxx
index f190dea..87e66e9 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.hxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.hxx
@@ -57,9 +57,6 @@ namespace com { namespace sun { namespace star {
 namespace dbaccess
 {
 class DatabaseDocumentLoader;
-// ODatabaseContext
-css::uno::Reference< css::uno::XInterface >
-    ODatabaseContext_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
 
 typedef ::cppu::WeakComponentImplHelper<   css::lang::XServiceInfo
                                        ,   css::sdb::XDatabaseContext
diff --git a/dbaccess/source/ui/dlg/ConnectionPage.hxx b/dbaccess/source/ui/dlg/ConnectionPage.hxx
index e7f41af..10d13b8 100644
--- a/dbaccess/source/ui/dlg/ConnectionPage.hxx
+++ b/dbaccess/source/ui/dlg/ConnectionPage.hxx
@@ -63,9 +63,6 @@ namespace dbaui
 
         virtual void        implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) SAL_OVERRIDE;
 
-        inline void enableConnectionURL() { m_pConnectionURL->SetReadOnly(false); }
-        inline void disableConnectionURL() { m_pConnectionURL->SetReadOnly(); }
-
         /** changes the connection URL.
             <p>The new URL must be of the type which is currently selected, only the parts which do not
             affect the type may be changed (compared to the previous URL).</p>
diff --git a/dbaccess/source/ui/dlg/ConnectionPageSetup.hxx b/dbaccess/source/ui/dlg/ConnectionPageSetup.hxx
index cad08bc..7b22179 100644
--- a/dbaccess/source/ui/dlg/ConnectionPageSetup.hxx
+++ b/dbaccess/source/ui/dlg/ConnectionPageSetup.hxx
@@ -60,16 +60,6 @@ namespace dbaui
         virtual void        implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) SAL_OVERRIDE;
         virtual bool        commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) SAL_OVERRIDE;
 
-        inline void enableConnectionURL() { m_pConnectionURL->SetReadOnly(false); }
-        inline void disableConnectionURL() { m_pConnectionURL->SetReadOnly(); }
-
-        /** changes the connection URL.
-            <p>The new URL must be of the type which is currently selected, only the parts which do not
-            affect the type may be changed (compared to the previous URL).</p>
-        */
-        void     changeConnectionURL( const OUString& _rNewDSN );
-        OUString getConnectionURL( ) const;
-
     protected:
         OConnectionTabPageSetup(vcl::Window* pParent, const OString& _rId, const OUString& _rUIXMLDescription, const SfxItemSet& _rCoreAttrs, sal_uInt16 _nHelpTextResId, sal_uInt16 _nHeaderResId, sal_uInt16 _nUrlResId);
         virtual bool checkTestConnection() SAL_OVERRIDE;
diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx
index 4237fab..58d2a3e 100644
--- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx
+++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx
@@ -218,7 +218,6 @@ namespace dbaui
         static VclPtr<OMySQLIntroPageSetup> CreateMySQLIntroTabPage( vcl::Window* _pParent, const SfxItemSet& _rAttrSet );
         ConnectionType      getMySQLMode();
         void                SetClickHdl( const Link<OMySQLIntroPageSetup *, void>& rLink ) { maClickHdl = rLink; }
-        DECL_LINK(ImplClickHdl, OMySQLIntroPageSetup*);
 
     protected:
         virtual bool FillItemSet(SfxItemSet* _rSet) SAL_OVERRIDE;
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.hxx b/dbaccess/source/ui/dlg/DbAdminImpl.hxx
index f00ba18..c487f2c 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.hxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.hxx
@@ -92,8 +92,6 @@ namespace dbaui
 
         inline css::uno::Reference< css::uno::XComponentContext > getORB() const { return m_xContext; }
 
-        css::uno::Reference< css::sdb::XDatabaseContext > getDatabaseContext() const { return m_xDatabaseContext; }
-
         /** creates a new connection. The caller is responsible to dispose it !!!!
         */
         ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool>      createConnection();
diff --git a/dbaccess/source/ui/dlg/RelationDlg.cxx b/dbaccess/source/ui/dlg/RelationDlg.cxx
index 7ce766d..547e5bc 100644
--- a/dbaccess/source/ui/dlg/RelationDlg.cxx
+++ b/dbaccess/source/ui/dlg/RelationDlg.cxx
@@ -230,11 +230,6 @@ short ORelationDialog::Execute()
     return nResult;
 }
 
-TTableConnectionData::value_type ORelationDialog::getConnectionData() const
-{
-    return m_pConnData;
-}
-
 void ORelationDialog::setValid(bool _bValid)
 {
     m_pPB_OK->Enable(_bValid);
diff --git a/dbaccess/source/ui/dlg/UserAdmin.hxx b/dbaccess/source/ui/dlg/UserAdmin.hxx
index 7aad1f8..7e56821 100644
--- a/dbaccess/source/ui/dlg/UserAdmin.hxx
+++ b/dbaccess/source/ui/dlg/UserAdmin.hxx
@@ -56,7 +56,6 @@ protected:
 
     // methods
     DECL_LINK( ListDblClickHdl, ListBox * );
-    DECL_LINK( CloseHdl,        PushButton * );
     DECL_LINK_TYPED( UserHdl,   Button *, void );
 
     void        FillUserNames();
diff --git a/dbaccess/source/ui/dlg/advancedsettings.hxx b/dbaccess/source/ui/dlg/advancedsettings.hxx
index accd6c3..b6054d4 100644
--- a/dbaccess/source/ui/dlg/advancedsettings.hxx
+++ b/dbaccess/source/ui/dlg/advancedsettings.hxx
@@ -91,7 +91,6 @@ namespace dbaui
 
     private:
         void    impl_initBooleanSettings();
-        DECL_LINK(ClickHdl, Button*);
     };
 
     // GeneratedValuesPage
@@ -127,9 +126,6 @@ namespace dbaui
 
         // <method>OGenericAdministrationPage::fillWindows</method>
         virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
-
-    private:
-        DECL_LINK( OnCheckBoxClick, CheckBox * );
     };
 
 }
diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx
index ef0c43a..be5ac35 100644
--- a/dbaccess/source/ui/dlg/dbfindex.hxx
+++ b/dbaccess/source/ui/dlg/dbfindex.hxx
@@ -43,7 +43,6 @@ public:
     OTableIndex( const OTableIndex& _rSource) : aIndexFileName(_rSource.aIndexFileName) { }
     explicit OTableIndex( const OUString& rFileName ) : aIndexFileName( rFileName ) { }
 
-    void SetIndexFileName( const OUString& rFileName ) { aIndexFileName = rFileName; }
     OUString GetIndexFileName() const { return aIndexFileName; }
 };
 
diff --git a/dbaccess/source/ui/dlg/dbwiz.cxx b/dbaccess/source/ui/dlg/dbwiz.cxx
index f8e925e..938d30d 100644
--- a/dbaccess/source/ui/dlg/dbwiz.cxx
+++ b/dbaccess/source/ui/dlg/dbwiz.cxx
@@ -69,9 +69,6 @@ ODbTypeWizDialog::ODbTypeWizDialog(vcl::Window* _pParent
                                )
     :OWizardMachine(_pParent, WizardButtonFlags::NEXT | WizardButtonFlags::PREVIOUS | WizardButtonFlags::FINISH | WizardButtonFlags::CANCEL | WizardButtonFlags::HELP )
     ,m_pOutSet(NULL)
-    ,m_bResetting(false)
-    ,m_bApplied(false)
-    ,m_bUIEnabled( true )
 {
     m_pImpl.reset(new ODbDataSourceAdministrationHelper(_rxORB,this,this));
     m_pImpl->setDataSourceOrName(_aDataSourceName);
diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx
index 151044a..0b2ff3a 100644
--- a/dbaccess/source/ui/dlg/dbwizsetup.cxx
+++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx
@@ -109,9 +109,6 @@ ODbTypeWizDialogSetup::ODbTypeWizDialogSetup(vcl::Window* _pParent
     :svt::RoadmapWizard( _pParent, WizardButtonFlags::NEXT | WizardButtonFlags::PREVIOUS | WizardButtonFlags::FINISH | WizardButtonFlags::CANCEL | WizardButtonFlags::HELP )
 
     , m_pOutSet(NULL)
-    , m_bResetting(false)
-    , m_bApplied(false)
-    , m_bUIEnabled( true )
     , m_bIsConnectable( false)
     , m_sRM_IntroText( ModuleRes( STR_PAGETITLE_INTROPAGE ) )
     , m_sRM_dBaseText( ModuleRes( STR_PAGETITLE_DBASE ) )
diff --git a/dbaccess/source/ui/inc/ConnectionLine.hxx b/dbaccess/source/ui/inc/ConnectionLine.hxx
index 864a364..2fc65b4 100644
--- a/dbaccess/source/ui/inc/ConnectionLine.hxx
+++ b/dbaccess/source/ui/inc/ConnectionLine.hxx
@@ -56,8 +56,6 @@ namespace dbaui
         bool                RecalcLine();
         void                Draw( OutputDevice* pOutDev );
         bool                CheckHit( const Point& rMousePos ) const;
-        OUString            GetSourceFieldName() const { return m_pData->GetSourceFieldName(); }
-        OUString            GetDestFieldName() const { return m_pData->GetDestFieldName(); }
 
         bool                IsValid() const;
 
diff --git a/dbaccess/source/ui/inc/JAccess.hxx b/dbaccess/source/ui/inc/JAccess.hxx
index b222c01..a330b05 100644
--- a/dbaccess/source/ui/inc/JAccess.hxx
+++ b/dbaccess/source/ui/inc/JAccess.hxx
@@ -57,8 +57,6 @@ namespace dbaui
         virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException,css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
         virtual sal_Int16 SAL_CALL getAccessibleRole(  ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
-        OJoinTableView* getTableView() const { return m_pTableView; }
-
         void notifyAccessibleEvent(
                     const sal_Int16 _nEventId,
                     const css::uno::Any& _rOldValue,
diff --git a/dbaccess/source/ui/inc/JoinDesignView.hxx b/dbaccess/source/ui/inc/JoinDesignView.hxx
index 4a22a2a..53ed8ef 100644
--- a/dbaccess/source/ui/inc/JoinDesignView.hxx
+++ b/dbaccess/source/ui/inc/JoinDesignView.hxx
@@ -63,7 +63,6 @@ namespace dbaui
     protected:
         // return the Rectangle where I can paint myself
         virtual void resizeDocumentView(Rectangle& rRect) SAL_OVERRIDE;
-        DECL_LINK_TYPED( SplitHdl, Splitter*, void );
     };
 }
 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_JOINDESIGNVIEW_HXX
diff --git a/dbaccess/source/ui/inc/RTableConnectionData.hxx b/dbaccess/source/ui/inc/RTableConnectionData.hxx
index 833f2f4..f9c490a 100644
--- a/dbaccess/source/ui/inc/RTableConnectionData.hxx
+++ b/dbaccess/source/ui/inc/RTableConnectionData.hxx
@@ -35,7 +35,6 @@ namespace dbaui
     class ORelationTableConnectionData :    public OTableConnectionData
     {
         friend bool operator==(const ORelationTableConnectionData& lhs, const ORelationTableConnectionData& rhs);
-        friend bool operator!=(const ORelationTableConnectionData& lhs, const ORelationTableConnectionData& rhs) { return !(lhs == rhs); }
 
         ::osl::Mutex    m_aMutex;
 
@@ -50,7 +49,6 @@ namespace dbaui
 
     protected:
         virtual OConnectionLineDataRef CreateLineDataObj() SAL_OVERRIDE;
-        virtual OConnectionLineDataRef CreateLineDataObj( const OConnectionLineData& rConnLineData ) SAL_OVERRIDE;
 
         ORelationTableConnectionData& operator=( const ORelationTableConnectionData& rConnData );
     public:
diff --git a/dbaccess/source/ui/inc/RelControliFace.hxx b/dbaccess/source/ui/inc/RelControliFace.hxx
index 3fa39ed..bace921 100644
--- a/dbaccess/source/ui/inc/RelControliFace.hxx
+++ b/dbaccess/source/ui/inc/RelControliFace.hxx
@@ -29,18 +29,11 @@ namespace dbaui
     public:
         virtual ~IRelationControlInterface(){}
 
-        /** getConnectionData returns the current connection data
-            @return the current connectiondata
-        */
-        virtual TTableConnectionData::value_type getConnectionData() const = 0;
-
         /** setValid set the valid inside, can be used for OK buttons
             @param  _bValid true when the using control allows an update
         */
         virtual void setValid(bool _bValid) = 0;
 
-        virtual css::uno::Reference< css::sdbc::XConnection > getConnection() = 0;
-
         /** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
             @param  _pConnectionData    the connection which exists between the new tables
         */
diff --git a/dbaccess/source/ui/inc/RelationController.hxx b/dbaccess/source/ui/inc/RelationController.hxx
index 1d7c81b..db8b2df3 100644
--- a/dbaccess/source/ui/inc/RelationController.hxx
+++ b/dbaccess/source/ui/inc/RelationController.hxx
@@ -40,19 +40,15 @@ namespace dbaui
         // execute a feature
         virtual void            Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) SAL_OVERRIDE;
 
-        ORelationDesignView*    getRelationView() { return static_cast<ORelationDesignView*>( getView() ); }
         void loadData();
         TTableWindowData::value_type existsTable(const OUString& _rComposedTableName,bool _bCase) const;
 
         // load the window positions out of the datasource
         void loadLayoutInformation();
-        void loadTableData(const css::uno::Any& _aTable);
     public:
         ORelationController(const css::uno::Reference< css::uno::XComponentContext >& _rM);
 
         virtual ~ORelationController();
-        // temp
-        void SaveTabWinsPosSize( OJoinTableView::OTableWindowMap* pTabWinList, long nOffsetX, long nOffsetY );
 
         void mergeData(const TTableConnectionData& _aConnectionData);
 
diff --git a/dbaccess/source/ui/inc/RelationDlg.hxx b/dbaccess/source/ui/inc/RelationDlg.hxx
index 2869d14..22eac41 100644
--- a/dbaccess/source/ui/inc/RelationDlg.hxx
+++ b/dbaccess/source/ui/inc/RelationDlg.hxx
@@ -63,20 +63,8 @@ namespace dbaui
         virtual ~ORelationDialog();
         virtual void dispose() SAL_OVERRIDE;
 
-        virtual css::uno::Reference< css::sdbc::XConnection > getConnection() SAL_OVERRIDE { return m_xConnection; }
-
         virtual short Execute() SAL_OVERRIDE;
 
-        /** getTableMap gives access to the table window map
-            @retrun the table window from the join view
-        */
-        OJoinTableView::OTableWindowMap* getTableMap() const { return m_pTableMap; }
-
-        /** getConnectionData returns the current connection data
-            @return the current connection data
-        */
-        virtual TTableConnectionData::value_type getConnectionData() const SAL_OVERRIDE;
-
         /** setValid set the valid inside, can be used for OK buttons
             @param  _bValid true when the using control allows an update
         */
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index 03ba401..ec4532a 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -37,10 +37,6 @@ namespace dbaui
         {
         }
 
-        void setUpperCase(bool _bUpper=true)
-        {
-            m_bOnlyUpperCase = _bUpper;
-        }
         void setAllowedChars(const OUString& _rAllowedChars)
         {
             m_sAllowedChars = _rAllowedChars;
diff --git a/dbaccess/source/ui/inc/TableConnectionData.hxx b/dbaccess/source/ui/inc/TableConnectionData.hxx
index ab25f35..ca23565 100644
--- a/dbaccess/source/ui/inc/TableConnectionData.hxx
+++ b/dbaccess/source/ui/inc/TableConnectionData.hxx
@@ -47,7 +47,6 @@ namespace dbaui
         void    Init();
 
         virtual OConnectionLineDataRef CreateLineDataObj();
-        virtual OConnectionLineDataRef CreateLineDataObj( const OConnectionLineData& rConnLineData );
 
         OTableConnectionData& operator=( const OTableConnectionData& rConnData );
     public:
@@ -95,7 +94,6 @@ namespace dbaui
 
         OUString GetConnName() const { return m_aConnName; }
 
-        void SetConnName( const OUString& rConnName ){ m_aConnName = rConnName; }
         /** Update create a new connection
 
             @return true if successful
diff --git a/dbaccess/source/ui/inc/TableController.hxx b/dbaccess/source/ui/inc/TableController.hxx
index b8820b3..891c988 100644
--- a/dbaccess/source/ui/inc/TableController.hxx
+++ b/dbaccess/source/ui/inc/TableController.hxx
@@ -62,7 +62,6 @@ namespace dbaui
         bool checkColumns(bool _bNew)
             throw (css::sdbc::SQLException,
                    css::uno::RuntimeException, std::exception);      // check if we have double column names
-        OUString createUniqueName(const css::uno::Reference< css::container::XNameAccess>& _rxTables,const OUString& _rDefault);
         void appendColumns(css::uno::Reference< css::sdbcx::XColumnsSupplier>& _rxColSup, bool _bNew, bool _bKeyColumns = false);
         void appendPrimaryKey(css::uno::Reference< css::sdbcx::XKeysSupplier>& _rxSup, bool _bNew);
         void alterColumns();
diff --git a/dbaccess/source/ui/inc/TableDesignControl.hxx b/dbaccess/source/ui/inc/TableDesignControl.hxx
index c6b3f1d..d3f3eb5 100644
--- a/dbaccess/source/ui/inc/TableDesignControl.hxx
+++ b/dbaccess/source/ui/inc/TableDesignControl.hxx
@@ -51,7 +51,6 @@ namespace dbaui
         virtual void SetCellData( long nRow, sal_uInt16 nColId, const css::uno::Any& _rNewData ) = 0;
         virtual css::uno::Any          GetCellData( long nRow, sal_uInt16 nColId ) = 0;
         virtual void SetControlText( long nRow, sal_uInt16 nColId, const OUString& rText ) = 0;
-        virtual OUString GetControlText( long nRow, sal_uInt16 nColId ) = 0;
 
         virtual OTableDesignView* GetView() const = 0;
 
diff --git a/dbaccess/source/ui/inc/TableDesignHelpBar.hxx b/dbaccess/source/ui/inc/TableDesignHelpBar.hxx
index d78f360..2c2c778 100644
--- a/dbaccess/source/ui/inc/TableDesignHelpBar.hxx
+++ b/dbaccess/source/ui/inc/TableDesignHelpBar.hxx
@@ -44,7 +44,6 @@ namespace dbaui
         virtual void dispose() SAL_OVERRIDE;
 
         void SetHelpText( const OUString& rText );
-        OUString GetHelpText() const { return m_sHelpText; }
 
         virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
 
diff --git a/dbaccess/source/ui/inc/TableDesignView.hxx b/dbaccess/source/ui/inc/TableDesignView.hxx
index 9a6fbec..d1f4ca4 100644
--- a/dbaccess/source/ui/inc/TableDesignView.hxx
+++ b/dbaccess/source/ui/inc/TableDesignView.hxx
@@ -37,7 +37,6 @@ namespace dbaui
         VclPtr<OTableEditorCtrl>            m_pEditorCtrl;
 
         void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
-        void ArrangeChildren( long nSplitPos ,Rectangle& rRect);
         DECL_LINK_TYPED( SplitHdl, Splitter*, void );
     protected:
         virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE;
diff --git a/dbaccess/source/ui/inc/TableWindowAccess.hxx b/dbaccess/source/ui/inc/TableWindowAccess.hxx
index 51ed4e3..ff555519 100644
--- a/dbaccess/source/ui/inc/TableWindowAccess.hxx
+++ b/dbaccess/source/ui/inc/TableWindowAccess.hxx
@@ -92,15 +92,6 @@ namespace dbaui
         virtual css::accessibility::AccessibleRelation SAL_CALL getRelation( sal_Int32 nIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
         virtual sal_Bool SAL_CALL containsRelation( sal_Int16 aRelationType ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
         virtual css::accessibility::AccessibleRelation SAL_CALL getRelationByType( sal_Int16 aRelationType ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-
-        void notifyAccessibleEvent(
-                    const sal_Int16 _nEventId,
-                    const css::uno::Any& _rOldValue,
-                    const css::uno::Any& _rNewValue
-                )
-        {
-            NotifyAccessibleEvent(_nEventId,_rOldValue,_rNewValue);
-        }
     };
 }
 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_TABLEWINDOWACCESS_HXX
diff --git a/dbaccess/source/ui/inc/TablesSingleDlg.hxx b/dbaccess/source/ui/inc/TablesSingleDlg.hxx
index 1a30236..d43d731 100644
--- a/dbaccess/source/ui/inc/TablesSingleDlg.hxx
+++ b/dbaccess/source/ui/inc/TablesSingleDlg.hxx
@@ -45,7 +45,6 @@ class ODbDataSourceAdministrationHelper;
         ::std::unique_ptr<ODbDataSourceAdministrationHelper>  m_pImpl;
         bool m_bStopExecution; // set when the dialog should not be executed
 
-        DECL_LINK( OKClickHdl, OKButton* );
         SfxItemSet*             m_pOutSet;
     public:
 
diff --git a/dbaccess/source/ui/inc/WCopyTable.hxx b/dbaccess/source/ui/inc/WCopyTable.hxx
index b5db837..143f125 100644
--- a/dbaccess/source/ui/inc/WCopyTable.hxx
+++ b/dbaccess/source/ui/inc/WCopyTable.hxx
@@ -331,7 +331,6 @@ namespace dbaui
         Wizard_Button_Style GetPressedButton() const { return m_ePressed; }
         void                EnableButton(Wizard_Button_Style eStyle, bool bEnable);
         void                AddWizardPage(OWizardPage* pPage); // delete page from OCopyTableWizard
-        void                RemoveWizardPage(OWizardPage* pPage); // Page goes again to user
         void                CheckButtons(); // checks which button can be disabled, enabled
 
         // returns a vector where the position of a column and if the column is in the selection
@@ -370,7 +369,6 @@ namespace dbaui
         */
         OUString getPrimaryKeyName() const { return m_aKeyName; }
 
-        TOTypeInfoSP        getTypeInfo(sal_Int32 _nPos)        const { return m_aTypeInfoIndex[_nPos]->second; }
         const OTypeInfoMap& getTypeInfo()                       const { return m_aTypeInfo; }
 
         TOTypeInfoSP        getDestTypeInfo(sal_Int32 _nPos)    const { return m_aDestTypeInfoIndex[_nPos]->second; }
diff --git a/dbaccess/source/ui/inc/adtabdlg.hxx b/dbaccess/source/ui/inc/adtabdlg.hxx
index 0903fbf..098c69a 100644
--- a/dbaccess/source/ui/inc/adtabdlg.hxx
+++ b/dbaccess/source/ui/inc/adtabdlg.hxx
@@ -83,7 +83,6 @@ namespace dbaui
         virtual ~OAddTableDlg();
         virtual void dispose() SAL_OVERRIDE;
 
-        void DetermineAddTable() { m_pAddButton->Enable( impl_isAddAllowed() ); }
         void Update();
 
         static  OUString  getDialogTitleForContext(
diff --git a/dbaccess/source/ui/inc/charsets.hxx b/dbaccess/source/ui/inc/charsets.hxx
index 68dc816..d269bae 100644
--- a/dbaccess/source/ui/inc/charsets.hxx
+++ b/dbaccess/source/ui/inc/charsets.hxx
@@ -54,8 +54,6 @@ namespace dbaui
         const_iterator  begin() const;
         /// get access to the (last + 1st) element of the charset collection
         const_iterator  end() const;
-        // size of the map
-        sal_Int32   size() const { return OCharsetDisplay_Base::size(); }
 
     protected:
         virtual bool approveEncoding( const rtl_TextEncoding _eEncoding, const rtl_TextEncodingInfo& _rInfo ) const SAL_OVERRIDE;
@@ -75,7 +73,6 @@ namespace dbaui
     public:
         CharsetDisplayDerefHelper(const CharsetDisplayDerefHelper& _rSource);
 
-        rtl_TextEncoding    getEncoding() const         { return CharsetDisplayDerefHelper_Base::getEncoding(); }
         OUString     getIanaName() const         { return CharsetDisplayDerefHelper_Base::getIanaName(); }
         OUString     getDisplayName() const      { return m_sDisplayName; }
 
diff --git a/dbaccess/source/ui/inc/dbwiz.hxx b/dbaccess/source/ui/inc/dbwiz.hxx
index 6f5af9e..f306650 100644
--- a/dbaccess/source/ui/inc/dbwiz.hxx
+++ b/dbaccess/source/ui/inc/dbwiz.hxx
@@ -55,16 +55,12 @@ class ODbDataSourceAdministrationHelper;
 class ODbTypeWizDialog : public svt::OWizardMachine , public IItemSetHelper, public IDatabaseSettingsDialog,public dbaui::OModuleClient
 {
 private:
-    OModuleClient m_aModuleClient;
+    OModuleClient           m_aModuleClient;
     ::std::unique_ptr<ODbDataSourceAdministrationHelper>  m_pImpl;
     SfxItemSet*             m_pOutSet;
     ::dbaccess::ODsnTypeCollection*
                             m_pCollection;  /// the DSN type collection instance
-    OUString         m_eType;
-
-    bool                m_bResetting : 1;   /// sal_True while we're resetting the pages
-    bool                m_bApplied : 1;     /// sal_True if any changes have been applied while the dialog was executing
-    bool                m_bUIEnabled : 1;   /// <TRUE/> if the UI is enabled, false otherwise. Cannot be switched back to <TRUE/>, once it is <FALSE/>
+    OUString                m_eType;
 
 public:
     /** ctor. The itemset given should have been created by <method>createItemSet</method> and should be destroyed
@@ -101,11 +97,6 @@ protected:
     virtual bool        onFinish() SAL_OVERRIDE;
 
 protected:
-    inline void     disabledUI() { m_bUIEnabled = false; }
-
-    /// select a datasource with a given name, adjust the item set accordingly, and everything like that ..
-    void implSelectDatasource(const OUString& _rRegisteredName);
-    void resetPages(const css::uno::Reference< css::beans::XPropertySet >& _rxDatasource);
 
     enum ApplyResult
     {
@@ -113,9 +104,6 @@ protected:
         AR_LEAVE_UNCHANGED,     // no changes were made
         AR_KEEP                 // don't leave the page (e.g. because an error occurred)
     };
-    /** apply all changes made
-    */
-    ApplyResult implApplyChanges();
 
 private:
     DECL_LINK_TYPED(OnTypeSelected, OGeneralPage&, void);
diff --git a/dbaccess/source/ui/inc/dbwizsetup.hxx b/dbaccess/source/ui/inc/dbwizsetup.hxx
index 2fea8fb..058e79b 100644
--- a/dbaccess/source/ui/inc/dbwizsetup.hxx
+++ b/dbaccess/source/ui/inc/dbwizsetup.hxx
@@ -60,15 +60,12 @@ class ODbTypeWizDialogSetup : public svt::RoadmapWizard , public IItemSetHelper,
 {
 
 private:
-    OModuleClient m_aModuleClient;
+    OModuleClient           m_aModuleClient;
     ::std::unique_ptr<ODbDataSourceAdministrationHelper>  m_pImpl;
     SfxItemSet*             m_pOutSet;
-    OUString         m_sURL;
-    OUString         m_sOldURL;
-    bool                m_bResetting : 1;   /// sal_True while we're resetting the pages
-    bool                m_bApplied : 1;     /// sal_True if any changes have been applied while the dialog was executing
-    bool                m_bUIEnabled : 1;   /// <TRUE/> if the UI is enabled, false otherwise. Cannot be switched back to <TRUE/>, once it is <FALSE/>
-    bool                m_bIsConnectable : 1;
+    OUString                m_sURL;
+    OUString                m_sOldURL;
+    bool                    m_bIsConnectable : 1;
     OUString                m_sRM_IntroText;
     OUString                m_sRM_dBaseText;
     OUString                m_sRM_TextText;
@@ -135,10 +132,6 @@ protected:
     virtual bool        onFinish() SAL_OVERRIDE;
 
 protected:
-    inline void     disabledUI() { m_bUIEnabled = false; }
-
-    /// select a datasource with a given name, adjust the item set accordingly, and everything like that ..
-    void implSelectDatasource(const OUString& _rRegisteredName);
     void resetPages(const css::uno::Reference< css::beans::XPropertySet >& _rxDatasource);
 
     enum ApplyResult
diff --git a/dbaccess/source/ui/inc/indexcollection.hxx b/dbaccess/source/ui/inc/indexcollection.hxx
index 3366a77..baa39afd 100644
--- a/dbaccess/source/ui/inc/indexcollection.hxx
+++ b/dbaccess/source/ui/inc/indexcollection.hxx
@@ -80,9 +80,6 @@ namespace dbaui
         // detach from the container
         void detach();
 
-        // number of contained indexes
-        sal_Int32   size() const { return m_aIndexes.size(); }
-
         /// drop an index, and remove it from the collection
         bool    drop(const Indexes::iterator& _rPos);
         /// simply drop the index described by the name, but don't remove the descriptor from the collection
diff --git a/dbaccess/source/ui/inc/indexdialog.hxx b/dbaccess/source/ui/inc/indexdialog.hxx
index 454f1f8..5121ac5 100644
--- a/dbaccess/source/ui/inc/indexdialog.hxx
+++ b/dbaccess/source/ui/inc/indexdialog.hxx
@@ -168,10 +168,6 @@ namespace dbaui
         bool implDropIndex(SvTreeListEntry* _pEntry, bool _bRemoveFromCollection);
 
         bool implCheckPlausibility(const Indexes::const_iterator& _rPos);
-
-        /** checks if the controls have to be replaced and moved.
-        */
-        void checkControls();
     };
 
 }   // namespace dbaui
diff --git a/dbaccess/source/ui/inc/paramdialog.hxx b/dbaccess/source/ui/inc/paramdialog.hxx
index 58bb7c4..bf73aa5 100644
--- a/dbaccess/source/ui/inc/paramdialog.hxx
+++ b/dbaccess/source/ui/inc/paramdialog.hxx
@@ -92,8 +92,6 @@ namespace dbaui
     protected:
         void Construct();
 
-        ::connectivity::OSQLParseNode* implPredicateTree(OUString& _rErrorMessage, const OUString& _rStatement, const css::uno::Reference< css::beans::XPropertySet > & _rxField);
-
     private:
         DECL_LINK_TYPED(OnVisitedTimeout, Timer*, void);
         DECL_LINK(OnValueModified, Control*);
diff --git a/dbaccess/source/ui/inc/querycontroller.hxx b/dbaccess/source/ui/inc/querycontroller.hxx
index cdf2ac3..cf9c2ae 100644
--- a/dbaccess/source/ui/inc/querycontroller.hxx
+++ b/dbaccess/source/ui/inc/querycontroller.hxx
@@ -70,10 +70,10 @@ namespace dbaui
         /// if we're editing an existing view, this is non-NULL
         css::uno::Reference< css::sdbcx::XAlterView >         m_xAlterView;
 
-        OUString m_sStatement;           // contains the current sql statement
-        OUString m_sUpdateCatalogName;   // catalog for update data
-        OUString m_sUpdateSchemaName;    // schema for update data
-        OUString m_sUpdateTableName;     // table for update data
+        OUString        m_sStatement;           // contains the current sql statement
+        OUString        m_sUpdateCatalogName;   // catalog for update data
+        OUString        m_sUpdateSchemaName;    // schema for update data
+        OUString        m_sUpdateTableName;     // table for update data
         mutable OUString
                         m_sName;                // name of the query
 
@@ -82,12 +82,9 @@ namespace dbaui
         sal_Int32       m_nVisibleRows;     // which rows the selection browse should show
         sal_Int32       m_nSplitPos;        // the position of the splitter
         sal_Int32       m_nCommandType;     // the type of the object we're designing
-        bool        m_bGraphicalDesign; // are we in the graphical design mode (sal_True) or in the text design (sal_False)?
-        bool        m_bDistinct;        // true when you want "select distinct" otherwise false
-        bool        m_bViewAlias;       // show the alias row in the design view
-        bool        m_bViewTable;       // show the table row in the design view
-        bool        m_bViewFunction;    // show the function row in the design view
-        bool        m_bEscapeProcessing;// is true when we shouldn't parse the statement
+        bool            m_bGraphicalDesign; // are we in the graphical design mode (sal_True) or in the text design (sal_False)?
+        bool            m_bDistinct;        // true when you want "select distinct" otherwise false
+        bool            m_bEscapeProcessing;// is true when we shouldn't parse the statement
 
 
         /** returns the container of queries, views, or command definitions, depending on what object type
@@ -114,8 +111,6 @@ namespace dbaui
         void loadViewSettings( const ::comphelper::NamedValueCollection& o_rViewSettings );
         OUString translateStatement( bool _bFireStatementChange = true );
 
-        OUString getDefaultName() const;
-
         void execute_QueryPropDlg();
 
     protected:
diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx
index 6d5b73b..2fb4e71 100644
--- a/dbaccess/source/ui/inc/unodatbr.hxx
+++ b/dbaccess/source/ui/inc/unodatbr.hxx
@@ -429,11 +429,6 @@ namespace dbaui
 
         void transferChangedControlProperty(const OUString& _rProperty, const css::uno::Any& _rNewValue);
 
-        css::uno::Reference< css::sdbc::XConnection > connectWithStatus(
-            const OUString& _rDataSourceName,
-            void* _pTreeListUserData    // in reality a DBTreeListUserData*, but we do not know this class here...
-        );
-
         // checks whether the given tree entry denotes a data source
         bool impl_isDataSourceEntry( SvTreeListEntry* _pEntry ) const;
 
diff --git a/dbaccess/source/ui/querydesign/QTableConnectionData.cxx b/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
index ba4de09..cdfadf7 100644
--- a/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
+++ b/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
@@ -70,11 +70,6 @@ OConnectionLineDataRef OQueryTableConnectionData::CreateLineDataObj()
     return new OConnectionLineData();
 }
 
-OConnectionLineDataRef OQueryTableConnectionData::CreateLineDataObj( const OConnectionLineData& rConnLineData )
-{
-    return new OConnectionLineData( rConnLineData );
-}
-
 void OQueryTableConnectionData::CopyFrom(const OTableConnectionData& rSource)
 {
     // same as in base class, use of (non-virtual) operator=
diff --git a/dbaccess/source/ui/querydesign/QTableConnectionData.hxx b/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
index c511649..9561f1d 100644
--- a/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
+++ b/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
@@ -39,7 +39,6 @@ namespace dbaui
     protected:
         // for creation and duplication of lines of own type
         virtual OConnectionLineDataRef CreateLineDataObj() SAL_OVERRIDE;
-        virtual OConnectionLineDataRef CreateLineDataObj( const OConnectionLineData& rConnLineData ) SAL_OVERRIDE;
 
         OQueryTableConnectionData& operator=( const OQueryTableConnectionData& rConnData );
     public:
@@ -64,7 +63,6 @@ namespace dbaui
         sal_Int32       GetFieldIndex(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_nDestEntryIndex : m_nFromEntryIndex; }
         void            SetFieldIndex(EConnectionSide nWhich, sal_Int32 nVal) { if (nWhich==JTCS_TO) m_nDestEntryIndex=nVal; else m_nFromEntryIndex=nVal; }
 
-        ETableFieldType GetFieldType(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_eDestType : m_eFromType; }
         void            SetFieldType(EConnectionSide nWhich, ETableFieldType eType) { if (nWhich==JTCS_TO) m_eDestType=eType; else m_eFromType=eType; }
 
         void            InitFromDrag(const OTableFieldDescRef& rDragLeft, const OTableFieldDescRef& rDragRight);
diff --git a/dbaccess/source/ui/querydesign/QTableWindow.hxx b/dbaccess/source/ui/querydesign/QTableWindow.hxx
index c480b4b..fd30978 100644
--- a/dbaccess/source/ui/querydesign/QTableWindow.hxx
+++ b/dbaccess/source/ui/querydesign/QTableWindow.hxx
@@ -45,8 +45,6 @@ namespace dbaui
         // late Constructor, the base class CREATES Listbox on first call
         virtual bool         Init() SAL_OVERRIDE;
 
-        inline sal_Int32     GetAliasNum() const { return m_nAliasNum; }
-
         bool                 ExistsField(const OUString& strFieldName, OTableFieldDescRef& rInfo);
         bool                 ExistsAVisitedConn() const;
 
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
index af22a64..aea22ac 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
@@ -51,16 +51,9 @@ namespace dbaui
         void SetTabWin(OQueryTableWindow* pTW) { m_pTabWin = pTW; }
         // now SetOwnership should be invoked
 
-        // access to the managed connections
-        sal_uInt16  ConnCount() { return (sal_uInt16)m_vTableConnection.size(); }
-
         ::std::vector<VclPtr<OTableConnection> >&       GetTabConnList() { return m_vTableConnection; }
 
         void InsertConnection( OTableConnection* pConnection ) { m_vTableConnection.push_back(pConnection); }
-        void RemoveConnection( OTableConnection* pConnection )
-        {
-            m_vTableConnection.erase(::std::remove(m_vTableConnection.begin(),m_vTableConnection.end(),pConnection),m_vTableConnection.end());
-        }
     };
 
 }
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 91164af..a6240cb 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -55,7 +55,6 @@ using namespace ::com::sun::star::accessibility;
 
 #define DEFAULT_QUERY_COLS  20
 #define DEFAULT_SIZE        GetTextWidth("0") * 30
-#define CHECKBOX_SIZE       10
 #define HANDLE_ID            0
 #define HANDLE_COLUMN_WITDH 70
 #define SORT_COLUMN_NONE    0xFFFFFFFF
@@ -2317,16 +2316,6 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, sal_uInt16 nColId, con
     static_cast<OQueryController&>(getDesignView()->getController()).setModified( sal_True );
 }
 
-sal_uInt32 OSelectionBrowseBox::GetTotalCellWidth(long nRow, sal_uInt16 nColId) const
-{
-
-    long nRowId = GetRealRow(nRow);
-    if (nRowId == BROW_VIS_ROW)
-        return CHECKBOX_SIZE;
-    else
-        return  GetDataWindow().GetTextWidth(GetCellText(nRowId, nColId));
-}
-
 void OSelectionBrowseBox::ColumnResized(sal_uInt16 nColId)
 {
     if (static_cast<OQueryController&>(getDesignView()->getController()).isReadOnly())
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
index 3999f59..fe825dc 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
@@ -201,7 +201,6 @@ namespace dbaui
         virtual void                CellModified() SAL_OVERRIDE;
         virtual bool                SaveModified() SAL_OVERRIDE;
         virtual void                Init() SAL_OVERRIDE;
-        sal_uInt32                  GetTotalCellWidth(long nRow, sal_uInt16 nColId) const;
         virtual void                ColumnResized( sal_uInt16 nColId ) SAL_OVERRIDE;
 
         virtual sal_uInt32          GetTotalCellWidth(long nRow, sal_uInt16 nColId) SAL_OVERRIDE;
diff --git a/dbaccess/source/ui/querydesign/TableConnectionData.cxx b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
index 43fc4ee..9278e27 100644
--- a/dbaccess/source/ui/querydesign/TableConnectionData.cxx
+++ b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
@@ -136,11 +136,6 @@ OConnectionLineDataRef OTableConnectionData::CreateLineDataObj()
     return new OConnectionLineData();
 }
 
-OConnectionLineDataRef OTableConnectionData::CreateLineDataObj( const OConnectionLineData& rConnLineData )
-{
-    return new OConnectionLineData( rConnLineData );
-}
-
 OTableConnectionData* OTableConnectionData::NewInstance() const
 {
     return new OTableConnectionData();
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 9a21da5..7cca1a5 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -337,9 +337,6 @@ OQueryController::OQueryController(const Reference< XComponentContext >& _rM)
     ,m_nCommandType( CommandType::QUERY )
     ,m_bGraphicalDesign(false)
     ,m_bDistinct(false)
-    ,m_bViewAlias(false)
-    ,m_bViewTable(false)
-    ,m_bViewFunction(false)
     ,m_bEscapeProcessing(true)
 {
     InvalidateAll();
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index ebb3188..84c901c 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -277,11 +277,6 @@ IMPL_LINK_NOARG_TYPED( DlgQryJoin, NaturalToggleHdl, CheckBox&, void )
     }
 }
 
-TTableConnectionData::value_type DlgQryJoin::getConnectionData() const
-{
-    return m_pConnData;
-}
-
 void DlgQryJoin::setValid(bool _bValid)
 {
     m_pPB_OK->Enable(_bValid || eJoinType == CROSS_JOIN );
diff --git a/dbaccess/source/ui/querydesign/querydlg.hxx b/dbaccess/source/ui/querydesign/querydlg.hxx
index feca1af..eeb8fea 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hxx
+++ b/dbaccess/source/ui/querydesign/querydlg.hxx
@@ -72,18 +72,11 @@ namespace dbaui
         virtual void dispose() SAL_OVERRIDE;
         EJoinType GetJoinType() const { return eJoinType; };
 
-        /** getConnectionData returns the current connection data
-            @return the current connectiondata
-        */
-        virtual TTableConnectionData::value_type getConnectionData() const SAL_OVERRIDE;
-
         /** setValid set the valid inside, can be used for OK buttons
             @param  _bValid true when the using control allows an update
         */
         virtual void setValid(bool _bValid) SAL_OVERRIDE;
 
-        virtual css::uno::Reference< css::sdbc::XConnection > getConnection() SAL_OVERRIDE { return m_xConnection; }
-
         /** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
             @param  _pConnectionData    the connection which exists between the new tables
         */
diff --git a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
index 2510941..9cc424a 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
@@ -196,11 +196,6 @@ OConnectionLineDataRef ORelationTableConnectionData::CreateLineDataObj()
     return new OConnectionLineData();
 }
 
-OConnectionLineDataRef ORelationTableConnectionData::CreateLineDataObj( const OConnectionLineData& rConnLineData )
-{
-    return new OConnectionLineData( rConnLineData );
-}
-
 void ORelationTableConnectionData::CopyFrom(const OTableConnectionData& rSource)
 {
     // retract to the (non-virtual) operator= like in the base class
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 6744812..90e7341 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -877,25 +877,6 @@ void OTableEditorCtrl::InsertNewRows( long nRow )
     InvalidateFeatures();
 }
 
-OUString OTableEditorCtrl::GetControlText( long nRow, sal_uInt16 nColId )
-{
-    // Read the Browser Controls
-    if( nColId < FIELD_FIRST_VIRTUAL_COLUMN )
-    {
-        GoToRow( nRow );
-        GoToColumnId( nColId );
-        CellControllerRef xController = Controller();
-        if(xController.Is())
-            return xController->GetWindow().GetText();
-        else
-            return GetCellText(nRow,nColId);
-    }
-
-    // Read the Controls on the Tabpage
-    else
-        return pDescrWin->GetControlText( nColId );
-}
-
 void OTableEditorCtrl::SetControlText( long nRow, sal_uInt16 nColId, const OUString& rText )
 {
     // Set the Browser Controls
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.hxx b/dbaccess/source/ui/tabledesign/TEditControl.hxx
index 20f3614..c715460 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.hxx
@@ -118,8 +118,6 @@ namespace dbaui
         void SetPrimaryKey( bool bSet );
         bool IsPrimaryKey();
 
-        DECL_LINK(ControlPreNotifyHdl, NotifyEvent*);
-
     public:
         explicit OTableEditorCtrl(vcl::Window* pParentWin);
         virtual ~OTableEditorCtrl();
@@ -143,7 +141,6 @@ namespace dbaui
         virtual void SetCellData( long nRow, sal_uInt16 nColId, const css::uno::Any& _rSaveData ) SAL_OVERRIDE;
         virtual css::uno::Any  GetCellData( long nRow, sal_uInt16 nColId ) SAL_OVERRIDE;
         virtual void SetControlText( long nRow, sal_uInt16 nColId, const OUString& rText ) SAL_OVERRIDE;
-        virtual OUString GetControlText( long nRow, sal_uInt16 nColId ) SAL_OVERRIDE;
 
         virtual OTableDesignView* GetView() const SAL_OVERRIDE;
 
@@ -175,7 +172,6 @@ namespace dbaui
         virtual void paste() SAL_OVERRIDE;
 
     private:
-        DECL_LINK( StartIndexing, void* );
         DECL_LINK_TYPED( DelayedCut, void*, void );
         DECL_LINK_TYPED( DelayedPaste, void*, void );
         DECL_LINK_TYPED( DelayedDelete, void*, void );
diff --git a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx b/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx
index e300a48..d52d3f0 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx
@@ -70,8 +70,6 @@ namespace dbaui
 
         void SetControlText( sal_uInt16 nControlId, const OUString& rText )
                 { m_pGenPage->SetControlText(nControlId,rText); }
-        OUString GetControlText( sal_uInt16 nControlId )
-                { return m_pGenPage->GetControlText(nControlId); }
 
         // short GetFormatCategory(OFieldDescription* pFieldDescr) { return m_pGenPage ? m_pGenPage->GetFormatCategory(pFieldDescr) : -1; }
         // delivers a CAT_xxx (CAT_NUMBER, CAT_DATE ...) value to a Format set in the field
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 8459fc8..5e7fdb5 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1050,11 +1050,6 @@ EditLine& EditLine::operator = ( const EditLine& r )
 }
 
 
-bool operator != ( const EditLine& r1,  const EditLine& r2  )
-{
-    return !( r1 == r2 );
-}
-
 void EditLine::SetHeight( sal_uInt16 nH, sal_uInt16 nTxtH, sal_uInt16 nCrsrH )
 {
     nHeight = nH;
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index f712abd..218fc35 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -552,7 +552,6 @@ public:
 
     EditLine&   operator = ( const EditLine& rLine );
     friend bool operator == ( const EditLine& r1,  const EditLine& r2  );
-    friend bool operator != ( const EditLine& r1,  const EditLine& r2  );
 };
 
 
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index c61520d..fbf65ec 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -1624,19 +1624,6 @@ void BibDataManager::RegisterInterceptor( ::bib::BibBeamer* pBibBeamer)
 }
 
 
-bool BibDataManager::HasActiveConnection()const
-{
-    bool bRet = false;
-    Reference< XPropertySet >   xPrSet( m_xForm, UNO_QUERY );
-    if( xPrSet.is() )
-    {
-        Reference< XComponent >  xConnection;
-        xPrSet->getPropertyValue("ActiveConnection") >>= xConnection;
-        bRet = xConnection.is();
-    }
-    return bRet;
-}
-
 bool BibDataManager::HasActiveConnection()
 {
     return getConnection( m_xForm ).is();
diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx
index b5816a6..c17b047 100644
--- a/extensions/source/bibliography/datman.hxx
+++ b/extensions/source/bibliography/datman.hxx
@@ -166,7 +166,6 @@ public:
         OUString                    CreateDBChangeDialog(vcl::Window* pParent);
 
         void                        DispatchDBChangeDialog();
-        bool                        HasActiveConnection() const;
 
         void                        SetView( ::bib::BibView* pView ) { pBibView = pView; }
 
diff --git a/extensions/source/propctrlr/commoncontrol.cxx b/extensions/source/propctrlr/commoncontrol.cxx
index 5ac1230..d7f2469 100644
--- a/extensions/source/propctrlr/commoncontrol.cxx
+++ b/extensions/source/propctrlr/commoncontrol.cxx
@@ -117,24 +117,6 @@ namespace pcr
     }
 
 
-    bool ControlHelper::handlePreNotify(NotifyEvent& rNEvt)
-    {
-        if (MouseNotifyEvent::KEYINPUT == rNEvt.GetType())
-        {
-            const vcl::KeyCode& aKeyCode = rNEvt.GetKeyEvent()->GetKeyCode();
-            sal_uInt16 nKey = aKeyCode.GetCode();
-
-            if (nKey == KEY_RETURN && !aKeyCode.IsShift())
-            {
-                notifyModifiedValue();
-                impl_activateNextControl_nothrow();
-                return true;
-            }
-        }
-        return false;
-    }
-
-
     IMPL_LINK( ControlHelper, ModifiedHdl, vcl::Window*, /*_pWin*/ )
     {
         if ( m_pModifyListener )
diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx
index b649431..ebb8582 100644
--- a/extensions/source/propctrlr/commoncontrol.hxx
+++ b/extensions/source/propctrlr/commoncontrol.hxx
@@ -141,9 +141,6 @@ namespace pcr
         inline void activateNextControl() const { impl_activateNextControl_nothrow(); }
 
     public:
-        /// may be used to implement the default handling in PreNotify; returns sal_True if handled
-        bool handlePreNotify(NotifyEvent& _rNEvt);
-
         /// automatically size the window given in the ctor
         void    autoSizeWindow();
 
diff --git a/extensions/source/propctrlr/pcrcommon.hxx b/extensions/source/propctrlr/pcrcommon.hxx
index 6958860..6a026c7 100644
--- a/extensions/source/propctrlr/pcrcommon.hxx
+++ b/extensions/source/propctrlr/pcrcommon.hxx
@@ -102,14 +102,6 @@ namespace pcr
         inline bool empty() const { return UnoBase::getLength() == 0; }
 
         inline void resize( size_t _newSize ) { UnoBase::realloc( _newSize ); }
-
-        inline iterator erase( iterator _pos )
-        {
-            iterator loop = end();
-            while ( --loop != _pos )
-                *( loop - 1 ) = *loop;
-            resize( size() - 1 );
-        }
     };
 
 
diff --git a/filter/source/pdf/pdfdialog.hxx b/filter/source/pdf/pdfdialog.hxx
index 0c4a547..9ec8d6e 100644
--- a/filter/source/pdf/pdfdialog.hxx
+++ b/filter/source/pdf/pdfdialog.hxx
@@ -74,7 +74,6 @@ public:
 
 
 OUString PDFDialog_getImplementationName () throw (RuntimeException);
-Sequence< sal_Int8 > SAL_CALL PDFDialog_getImplementationId() throw(RuntimeException);
 Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames() throw (RuntimeException);
 Reference< XInterface > SAL_CALL PDFDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception );
 
diff --git a/forms/source/inc/listenercontainers.hxx b/forms/source/inc/listenercontainers.hxx
index 6c7c75d..4e19758 100644
--- a/forms/source/inc/listenercontainers.hxx
+++ b/forms/source/inc/listenercontainers.hxx
@@ -41,9 +41,6 @@ namespace frm
         ::cppu::OWeakObject&    m_rInstigator;
 
     protected:
-        ::cppu::OWeakObject&    getInstigator() { return m_rInstigator; }
-
-    protected:
         inline EventListeners( ::cppu::OWeakObject& _rInstigator, ::osl::Mutex& _rMutex )
             :EventListeners_Base( _rMutex )
             ,m_rInstigator( _rInstigator )
diff --git a/forms/source/xforms/NameContainer.hxx b/forms/source/xforms/NameContainer.hxx
index db47195..e969002 100644
--- a/forms/source/xforms/NameContainer.hxx
+++ b/forms/source/xforms/NameContainer.hxx
@@ -60,13 +60,6 @@ protected:
         return findItem( rName ) != maItems.end();
     }
 
-    T getItem( const OUString& rName )
-    {
-        OSL_ENSURE( hasItem( rName ), "can't get non-existent item" );
-        return maItems[ rName ];
-    }
-
-
     void replace( const OUString& rName,
                   const T& aElement )
     {
diff --git a/forms/source/xforms/xpathlib/xpathlib.hxx b/forms/source/xforms/xpathlib/xpathlib.hxx
index 3965ca7..57f608b 100644
--- a/forms/source/xforms/xpathlib/xpathlib.hxx
+++ b/forms/source/xforms/xpathlib/xpathlib.hxx
@@ -55,7 +55,6 @@ void xforms_indexFunction(xmlXPathParserContextPtr ctxt, int nargs);
 
 // String Functions
 void xforms_propertyFunction(xmlXPathParserContextPtr ctxt, int nargs);
-void xforms_versionFunction(xmlXPathParserContextPtr ctxt, int nargs);
 
 // Date and Time Functions
 void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int nargs);
diff --git a/framework/inc/classes/checkediterator.hxx b/framework/inc/classes/checkediterator.hxx
index ff5f07e..978dc4d 100644
--- a/framework/inc/classes/checkediterator.hxx
+++ b/framework/inc/classes/checkediterator.hxx
@@ -69,71 +69,6 @@ class CheckedIterator
         // interface methods
 
         /*-****************************************************************************************************
-            @short      initialize instance with valid container
-            @descr      Set new container at an instance of this class. The other member will set automatically!
-                        m_pPosition = first element in container
-                        m_eEndState = BEFOREEND
-            @param      "rContainer", must be a valid reference to an existing container.
-            @onerror    An assertion is thrown.
-        *//*-*****************************************************************************************************/
-
-        inline void initialize( const TContainer& rContainer )
-        {
-            // Check incoming parameter. We don't accept all!
-            SAL_WARN_IF( &rContainer==NULL, "fwk", "CheckedIterator::initialize(): Invalid parameter detected!" );
-            SAL_WARN_IF( m_eEndState!=E_UNKNOWN, "fwk", "CheckedIterator::initialize(): Instance already initialized! Don't do it again." );
-
-            if( m_eEndState == E_UNKNOWN )
-            {
-                // Set new container and update other member.
-                m_pContainer = &rContainer;
-                m_eEndState  = E_BEFOREEND;
-                m_pPosition  = m_pContainer->begin();
-            }
-        }
-
-        /*-****************************************************************************************************
-            @short      set internal states to E_END
-            @descr      Sometimes we need a "walking" check-iterator which is initialized with the END-state!
-                        We need it to return one default value if no other ones exist ...
-
-            @seealso    using in class FilterCache!
-        *//*-*****************************************************************************************************/
-
-        inline void setEnd()
-        {
-            m_pContainer = NULL;
-            m_eEndState  = E_END;
-        }
-
-        /*-****************************************************************************************************
-            @short      set internal states to E_AFTEREND
-            @descr      Sometimes we need a "walking" check-iterator which is initialized with AFTEREND-state!
-                        We need it if we don't have a container but must prevent us against further searching!
-
-            @seealso    using in class FilterCache!
-        *//*-*****************************************************************************************************/
-
-        inline void setAfterEnd()
-        {
-            m_pContainer = NULL;
-            m_eEndState  = E_AFTEREND;
-        }
-
-        /*-****************************************************************************************************
-            @short      reset this iterator
-            @descr      It must be called on an already initialized iterator.
-                        Means the member m_pContainer must be valid. Otherwise the reaction
-                        isn't defined.
-        *//*-*****************************************************************************************************/
-
-        inline void reset()
-        {
-            m_eEndState  = E_UNKNOWN;
-            m_pContainer = NULL;
-        }
-
-        /*-****************************************************************************************************
             @short      step to next element in container.
             @descr      If end of container is reached we change our internal "m_eEndState".
                         If end reached for first time; we set it to E_END;
@@ -168,22 +103,6 @@ class CheckedIterator
             return *this;
         }
 
-        /*-****************************************************************************************************
-            @short      support readonly access to container entry
-            @descr      Use it to get the value of current container item.
-            @return     A reference to value of container entry.
-        *//*-*****************************************************************************************************/
-
-        inline typename TContainer::const_iterator getEntry()
-        {
-            // Warn programmer if he forget to initialize these object ...
-            SAL_WARN_IF( m_pContainer==NULL, "fwk", "CheckedIterator::getEntry(): Object not initialized!" );
-            // or try to read a non existing element!
-            SAL_WARN_IF( m_eEndState!=E_BEFOREEND, "fwk", "CheckedIterator::getEntry(): Wrong using of class detected!" );
-
-            return m_pPosition;
-        }
-
     //  private member
 
     private:
diff --git a/framework/inc/classes/filtercachedata.hxx b/framework/inc/classes/filtercachedata.hxx
index 8139407..e20b1a3 100644
--- a/framework/inc/classes/filtercachedata.hxx
+++ b/framework/inc/classes/filtercachedata.hxx
@@ -315,27 +315,6 @@ class SetNodeHash : public std::unordered_map< OUString                    ,
                                                OUStringHash                  ,
                                                std::equal_to< OUString > >
 {
-
-    // interface
-
-    public:
-
-        // The only way to free ALL memory really!
-
-        inline void free()
-        {
-            SetNodeHash().swap( *this ); // get rid of reserved capacity
-            framework::free(lAddedItems);
-            framework::free(lChangedItems);
-            framework::free(lRemovedItems);
-        }
-

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list