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
{
_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
......
......@@ -709,7 +709,6 @@ public:
return aRange[n];
}
inline bool operator==( const ScRangePair& ) const;
inline bool operator!=( const ScRangePair& ) const;
};
inline ScRangePair& ScRangePair::operator= ( const ScRangePair& rRange )
......@@ -725,11 +724,6 @@ inline bool ScRangePair::operator==( const ScRangePair& rRange ) const
(aRange[1] == rRange.aRange[1]);
}
inline bool ScRangePair::operator!=( const ScRangePair& rRange ) const
{
return !operator==( rRange );
}
// ScRefAddress
class ScRefAddress
{
......@@ -809,10 +803,6 @@ public:
}
inline bool operator == ( const ScRefAddress& r ) const;
inline bool operator != ( const ScRefAddress& r ) const
{
return !(operator==(r));
}
OUString GetRefString( ScDocument* pDocument, SCTAB nActTab,
const ScAddress::Details& rDetails = ScAddress::detailsOOOa1) const;
......
......@@ -155,8 +155,6 @@ struct SC_DLLPUBLIC ScRefCellValue
bool equalsWithoutFormat( const ScRefCellValue& r ) const;
ScRefCellValue& operator= ( const ScRefCellValue& r );
void swap( ScRefCellValue& r );
};
#endif
......
......@@ -84,8 +84,6 @@ public:
bool HasRowHeaders() const { return aPositioner.HasRowHeaders(); }
const OUString& GetName() const { return aName; }
bool operator==(const ScChartArray& rCmp) const;
ScMemChart* CreateMemChart();
};
......
......@@ -124,7 +124,6 @@ struct ScPivotField
ScPivotField( const ScPivotField& r );
long getOriginalDim() const;
bool operator==( const ScPivotField& r ) const;
};
typedef std::vector< ScPivotField > ScPivotFieldVector;
......
......@@ -601,13 +601,4 @@ ScRefCellValue& ScRefCellValue::operator= ( const ScRefCellValue& r )
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: */
......@@ -47,18 +47,6 @@ using std::endl;
using css::sheet::DataPilotFieldReference;
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
......@@ -127,14 +115,6 @@ long ScPivotField::getOriginalDim() const
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() :
......
......@@ -84,12 +84,6 @@ ScChartArray::ScChartArray( const ScChartArray& rArr ) :
ScChartArray::~ScChartArray() {}
bool ScChartArray::operator==(const ScChartArray& rCmp) const
{
return aPositioner == rCmp.aPositioner
&& aName == rCmp.aName;
}
ScMemChart* ScChartArray::CreateMemChart()
{
ScRangeListRef aRangeListRef(GetRangeList());
......
......@@ -227,7 +227,6 @@ public:
ScDocument& GetDocument() { return aDocument; }
ScDocFunc& GetDocFunc() { return *pDocFunc; }
void SetDocFunc( ScDocFunc *pDF ) { pDocFunc = pDF; }
SfxPrinter* GetPrinter( bool bCreateIfNotExist = true );
sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL );
......
......@@ -42,7 +42,6 @@ public:
~ImpXPolygon();
bool operator==(const ImpXPolygon& rImpXPoly) const;
bool operator!=(const ImpXPolygon& rImpXPoly) const { return !operator==(rImpXPoly); }
void CheckPointDelete()
{
......@@ -71,7 +70,6 @@ public:
~ImpXPolyPolygon();
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