Kaydet (Commit) c0b199b3 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods in sc/

Change-Id: I2c24d06d9fad26c65fa13cdcaa2c3f908971106c
üst 0d31873d
...@@ -27,10 +27,6 @@ inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rU ...@@ -27,10 +27,6 @@ inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rU
{ {
_rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US); _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US);
} }
inline void operator <<= (rtl::OUString& _rUnicodeString, rtl::OString const & _rAsciiString )
{
_rUnicodeString = rtl::OStringToOUString(_rAsciiString, RTL_TEXTENCODING_ASCII_US);
}
#endif #endif
......
...@@ -709,7 +709,6 @@ public: ...@@ -709,7 +709,6 @@ public:
return aRange[n]; return aRange[n];
} }
inline bool operator==( const ScRangePair& ) const; inline bool operator==( const ScRangePair& ) const;
inline bool operator!=( const ScRangePair& ) const;
}; };
inline ScRangePair& ScRangePair::operator= ( const ScRangePair& rRange ) inline ScRangePair& ScRangePair::operator= ( const ScRangePair& rRange )
...@@ -725,11 +724,6 @@ inline bool ScRangePair::operator==( const ScRangePair& rRange ) const ...@@ -725,11 +724,6 @@ inline bool ScRangePair::operator==( const ScRangePair& rRange ) const
(aRange[1] == rRange.aRange[1]); (aRange[1] == rRange.aRange[1]);
} }
inline bool ScRangePair::operator!=( const ScRangePair& rRange ) const
{
return !operator==( rRange );
}
// ScRefAddress // ScRefAddress
class ScRefAddress class ScRefAddress
{ {
...@@ -809,10 +803,6 @@ public: ...@@ -809,10 +803,6 @@ public:
} }
inline bool operator == ( const ScRefAddress& r ) const; inline bool operator == ( const ScRefAddress& r ) const;
inline bool operator != ( const ScRefAddress& r ) const
{
return !(operator==(r));
}
OUString GetRefString( ScDocument* pDocument, SCTAB nActTab, OUString GetRefString( ScDocument* pDocument, SCTAB nActTab,
const ScAddress::Details& rDetails = ScAddress::detailsOOOa1) const; const ScAddress::Details& rDetails = ScAddress::detailsOOOa1) const;
......
...@@ -155,8 +155,6 @@ struct SC_DLLPUBLIC ScRefCellValue ...@@ -155,8 +155,6 @@ struct SC_DLLPUBLIC ScRefCellValue
bool equalsWithoutFormat( const ScRefCellValue& r ) const; bool equalsWithoutFormat( const ScRefCellValue& r ) const;
ScRefCellValue& operator= ( const ScRefCellValue& r ); ScRefCellValue& operator= ( const ScRefCellValue& r );
void swap( ScRefCellValue& r );
}; };
#endif #endif
......
...@@ -84,8 +84,6 @@ public: ...@@ -84,8 +84,6 @@ public:
bool HasRowHeaders() const { return aPositioner.HasRowHeaders(); } bool HasRowHeaders() const { return aPositioner.HasRowHeaders(); }
const OUString& GetName() const { return aName; } const OUString& GetName() const { return aName; }
bool operator==(const ScChartArray& rCmp) const;
ScMemChart* CreateMemChart(); ScMemChart* CreateMemChart();
}; };
......
...@@ -124,7 +124,6 @@ struct ScPivotField ...@@ -124,7 +124,6 @@ struct ScPivotField
ScPivotField( const ScPivotField& r ); ScPivotField( const ScPivotField& r );
long getOriginalDim() const; long getOriginalDim() const;
bool operator==( const ScPivotField& r ) const;
}; };
typedef std::vector< ScPivotField > ScPivotFieldVector; typedef std::vector< ScPivotField > ScPivotFieldVector;
......
...@@ -601,13 +601,4 @@ ScRefCellValue& ScRefCellValue::operator= ( const ScRefCellValue& r ) ...@@ -601,13 +601,4 @@ ScRefCellValue& ScRefCellValue::operator= ( const ScRefCellValue& r )
return *this; return *this;
} }
void ScRefCellValue::swap( ScRefCellValue& r )
{
std::swap(meType, r.meType);
// double is 8 bytes, whereas a pointer may be 4 or 8 bytes depending on
// the platform. Swap by double values.
std::swap(mfValue, r.mfValue);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -47,18 +47,6 @@ using std::endl; ...@@ -47,18 +47,6 @@ using std::endl;
using css::sheet::DataPilotFieldReference; using css::sheet::DataPilotFieldReference;
using std::vector; using std::vector;
namespace
{
bool equals(const DataPilotFieldReference& left, const DataPilotFieldReference& right)
{
return (left.ReferenceType == right.ReferenceType)
&& (left.ReferenceField == right.ReferenceField)
&& (left.ReferenceItemType == right.ReferenceItemType)
&& (left.ReferenceItemName == right.ReferenceItemName);
}
} // namespace
// ScDPName // ScDPName
...@@ -127,14 +115,6 @@ long ScPivotField::getOriginalDim() const ...@@ -127,14 +115,6 @@ long ScPivotField::getOriginalDim() const
return mnOriginalDim >= 0 ? mnOriginalDim : static_cast<long>(nCol); return mnOriginalDim >= 0 ? mnOriginalDim : static_cast<long>(nCol);
} }
bool ScPivotField::operator==( const ScPivotField& r ) const
{
return (nCol == r.nCol)
&& (mnOriginalDim == r.mnOriginalDim)
&& (nFuncMask == r.nFuncMask)
&& equals(maFieldRef, r.maFieldRef);
}
// ScPivotParam // ScPivotParam
ScPivotParam::ScPivotParam() : ScPivotParam::ScPivotParam() :
......
...@@ -84,12 +84,6 @@ ScChartArray::ScChartArray( const ScChartArray& rArr ) : ...@@ -84,12 +84,6 @@ ScChartArray::ScChartArray( const ScChartArray& rArr ) :
ScChartArray::~ScChartArray() {} ScChartArray::~ScChartArray() {}
bool ScChartArray::operator==(const ScChartArray& rCmp) const
{
return aPositioner == rCmp.aPositioner
&& aName == rCmp.aName;
}
ScMemChart* ScChartArray::CreateMemChart() ScMemChart* ScChartArray::CreateMemChart()
{ {
ScRangeListRef aRangeListRef(GetRangeList()); ScRangeListRef aRangeListRef(GetRangeList());
......
...@@ -227,7 +227,6 @@ public: ...@@ -227,7 +227,6 @@ public:
ScDocument& GetDocument() { return aDocument; } ScDocument& GetDocument() { return aDocument; }
ScDocFunc& GetDocFunc() { return *pDocFunc; } ScDocFunc& GetDocFunc() { return *pDocFunc; }
void SetDocFunc( ScDocFunc *pDF ) { pDocFunc = pDF; }
SfxPrinter* GetPrinter( bool bCreateIfNotExist = true ); SfxPrinter* GetPrinter( bool bCreateIfNotExist = true );
sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ); sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL );
......
...@@ -42,7 +42,6 @@ public: ...@@ -42,7 +42,6 @@ public:
~ImpXPolygon(); ~ImpXPolygon();
bool operator==(const ImpXPolygon& rImpXPoly) const; bool operator==(const ImpXPolygon& rImpXPoly) const;
bool operator!=(const ImpXPolygon& rImpXPoly) const { return !operator==(rImpXPoly); }
void CheckPointDelete() void CheckPointDelete()
{ {
...@@ -71,7 +70,6 @@ public: ...@@ -71,7 +70,6 @@ public:
~ImpXPolyPolygon(); ~ImpXPolyPolygon();
bool operator==(const ImpXPolyPolygon& rImpXPolyPoly) const; bool operator==(const ImpXPolyPolygon& rImpXPolyPoly) const;
bool operator!=(const ImpXPolyPolygon& rImpXPolyPoly) const { return !operator==(rImpXPolyPoly); }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment