[Libreoffice-commits] core.git: extensions/source include/canvas sc/source

Noel Grandin noel at peralex.com
Fri Oct 30 09:26:51 UTC 2015


 extensions/source/update/check/updatehdl.hxx |    3 ---
 include/canvas/canvastools.hxx               |    1 -
 sc/source/filter/inc/addressconverter.hxx    |    5 -----
 sc/source/filter/inc/xladdress.hxx           |   10 ----------
 sc/source/ui/inc/selectionstate.hxx          |    2 --
 5 files changed, 21 deletions(-)

New commits:
commit b460792abc90a06489f45501759936046daf3607
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Oct 30 09:33:34 2015 +0200

    loplugin:unusedmethods
    
    Change-Id: Ib4277268903e4411f6dabc856270702f40027bdb
    Reviewed-on: https://gerrit.libreoffice.org/19680
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/extensions/source/update/check/updatehdl.hxx b/extensions/source/update/check/updatehdl.hxx
index 3d4a1f1..10a30cf 100644
--- a/extensions/source/update/check/updatehdl.hxx
+++ b/extensions/source/update/check/updatehdl.hxx
@@ -146,9 +146,6 @@ private:
     static OUString         loadString( const css::uno::Reference< css::resource::XResourceBundle >& xBundle,
                                         sal_Int32 nResourceId );
     OUString                substVariables( const OUString &rSource ) const;
-    static void             setProperty( css::uno::Sequence< css::beans::NamedValue > &rProps,
-                                         const int nIndex, const OUString &rPropName, const css::uno::Any &rPropValue )
-                                         { rProps[ nIndex ].Name = rPropName; rProps[ nIndex ].Value = rPropValue; }
     static void             insertControlModel( css::uno::Reference< css::awt::XControlModel > const & rxDialogModel,
                                                 OUString const & rServiceName,
                                                 OUString const & rControlName,
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx
index 831d3b9..99cde26 100644
--- a/include/canvas/canvastools.hxx
+++ b/include/canvas/canvastools.hxx
@@ -104,7 +104,6 @@ namespace canvas
 
         // mickey's math tricks...
         inline unsigned int pow2( unsigned int c ) { return 0x1 << c; }
-        inline unsigned int mask( unsigned int c ) { return ((unsigned int)(-1)) / (pow2(pow2(c)) + 1); }
 
         /** Round given floating point value down to next integer
          */
diff --git a/sc/source/filter/inc/addressconverter.hxx b/sc/source/filter/inc/addressconverter.hxx
index 0186b11..b84f153 100644
--- a/sc/source/filter/inc/addressconverter.hxx
+++ b/sc/source/filter/inc/addressconverter.hxx
@@ -97,11 +97,6 @@ struct BinAddress
     void                read( BiffInputStream& rStrm, bool bCol16Bit = true, bool bRow32Bit = false );
 };
 
-inline bool operator==( const BinAddress& rL, const BinAddress& rR )
-{
-    return (rL.mnCol == rR.mnCol) && (rL.mnRow == rR.mnRow);
-}
-
 inline bool operator<( const BinAddress& rL, const BinAddress& rR )
 {
     return (rL.mnCol < rR.mnCol) || ((rL.mnCol == rR.mnCol) && (rL.mnRow < rR.mnRow));
diff --git a/sc/source/filter/inc/xladdress.hxx b/sc/source/filter/inc/xladdress.hxx
index 1267236..961ef62 100644
--- a/sc/source/filter/inc/xladdress.hxx
+++ b/sc/source/filter/inc/xladdress.hxx
@@ -42,16 +42,6 @@ struct XclAddress
     void                Write( XclExpStream& rStrm, bool bCol16Bit = true ) const;
 };
 
-inline bool operator==( const XclAddress& rL, const XclAddress& rR )
-{
-    return (rL.mnCol == rR.mnCol) && (rL.mnRow == rR.mnRow);
-}
-
-inline bool operator<( const XclAddress& rL, const XclAddress& rR )
-{
-    return (rL.mnCol < rR.mnCol) || ((rL.mnCol == rR.mnCol) && (rL.mnRow < rR.mnRow));
-}
-
 inline XclImpStream& operator>>( XclImpStream& rStrm, XclAddress& rXclPos )
 {
     rXclPos.Read( rStrm );
diff --git a/sc/source/ui/inc/selectionstate.hxx b/sc/source/ui/inc/selectionstate.hxx
index 4d37313..86a8d6f 100644
--- a/sc/source/ui/inc/selectionstate.hxx
+++ b/sc/source/ui/inc/selectionstate.hxx
@@ -46,8 +46,6 @@ public:
 
     /** Returns the position of the cell cursor. */
     inline const ScAddress& GetCellCursor() const { return maCursor; }
-    /** Returns a range list containing all selected cell ranges. */
-    inline const ScRangeList& GetSheetSelection() const { return maSheetSel; }
     /** Returns the edit engine selection. */
     inline const ESelection& GetEditSelection() const { return maEditSel; }
 


More information about the Libreoffice-commits mailing list