From 58aea3f36c14414f95668e229a7350598f6c53a8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 30 Sep 2015 10:29:19 +0200 Subject: 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 Reviewed-by: Noel Grandin --- 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 ---- 4 files changed, 39 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/ut.hxx b/lotuswordpro/source/filter/ut.hxx index 478336075648..ecded7bb2e73 100644 --- a/lotuswordpro/source/filter/ut.hxx +++ b/lotuswordpro/source/filter/ut.hxx @@ -81,19 +81,9 @@ inline UtWord UtGetIntelWord(UtByte * pData) inline UtDWord UtGetIntelDWord(UtByte * pData) { return pData[0] | pData[1] << 8 | pData[2] << 16 | pData[3] << 24; } -inline void UtPutIntelWord(UtByte * pData, UtWord Val) -{ pData[0] = Val; pData[1] = Val >> 8; } - -inline void UtPutIntelDWord(UtByte * pData, UtDWord Val) -{ pData[0] = Val; pData[1] = Val >> 8; pData[2] = Val >> 16; pData[3] = Val >> 24; } - inline UtByte UtGetIntelByte(UtByte * pData) { return * pData; } -inline void UtPutIntelByte(UtByte * pData, UtByte Val) - -{ * pData = Val; } - } #endif diff --git a/lotuswordpro/source/filter/xfilter/xfcolumns.hxx b/lotuswordpro/source/filter/xfilter/xfcolumns.hxx index 0f0de07c75cd..514bdf844303 100644 --- a/lotuswordpro/source/filter/xfilter/xfcolumns.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcolumns.hxx @@ -96,8 +96,6 @@ public: */ void ToXml(IXFStream *pStrm); - friend bool operator==(XFColumn& c1, XFColumn& c2); - friend bool operator!=(XFColumn& c1, XFColumn& c2); friend class XFColumns; private: @@ -123,8 +121,6 @@ public: void ToXml(IXFStream *pStrm); - friend bool operator==(XFColumnSep& sep1, XFColumnSep& sep2); - friend bool operator!=(XFColumnSep& sep1, XFColumnSep& sep2); friend class XFColumns; private: sal_Int32 m_nRelHeight; diff --git a/lotuswordpro/source/filter/xfilter/xfutil.cxx b/lotuswordpro/source/filter/xfilter/xfutil.cxx index 92cbf55a0aed..4c6d6ae1889c 100644 --- a/lotuswordpro/source/filter/xfilter/xfutil.cxx +++ b/lotuswordpro/source/filter/xfilter/xfutil.cxx @@ -63,15 +63,6 @@ #include #include -OUString DateTimeToOUString(XFDateTime& dt) -{ - OUString aResult = OUString::number(dt.nYear) + "-" + OUString::number(dt.nMonth) + "-" + OUString::number(dt.nDay) + - "T" + OUString::number(dt.nHour) + ":" + OUString::number(dt.nMinute) + ":" + OUString::number(dt.nSecond) + "." + - OUString::number(dt.nMillSecond); - - return aResult; -} - OUString GetTableColName(sal_Int32 col) { int remain = 0; @@ -417,18 +408,6 @@ OUString GetAlignName(enumXFAlignType align) return OUString(""); } -OUString GetDrawKind(enumXFDrawKind kind) -{ - if( kind == enumXFDrawKindFull ) - return OUString("full"); - else if( kind == enumXFDrawKindSection ) - return OUString("section"); - else if( kind == enumXFDrawKindCut ) - return OUString("cut"); - else //( kind == enumXFDrawKindArc ) - return OUString("arc"); -} - OUString GetPageUsageName(enumXFPageUsage usage) { OUString sRet; diff --git a/lotuswordpro/source/filter/xfilter/xfutil.hxx b/lotuswordpro/source/filter/xfilter/xfutil.hxx index 32a1ec311e5d..8d72ab7257d3 100644 --- a/lotuswordpro/source/filter/xfilter/xfutil.hxx +++ b/lotuswordpro/source/filter/xfilter/xfutil.hxx @@ -65,8 +65,6 @@ #include #include -OUString DateTimeToOUString(XFDateTime& dt); - OUString GetTableColName(sal_Int32 col); OUString GetUnderlineName(enumXFUnderline type); @@ -91,8 +89,6 @@ OUString GetFrameYRel(enumXFFrameYRel rel); OUString GetAlignName(enumXFAlignType align); -OUString GetDrawKind(enumXFDrawKind kind); - OUString GetPageUsageName(enumXFPageUsage usage); OUString GetValueType(enumXFValueType type); -- cgit