Remove unused code

This commit is contained in:
Elton Chung 2012-02-11 00:16:26 +08:00 committed by Michael Meeks
parent acddd09bc2
commit 952b46570c
5 changed files with 0 additions and 31 deletions

View file

@ -377,7 +377,6 @@ public:
ScChangeAction* GetPrev() const { return pPrev; }
bool IsDeletedIn() const;
bool IsDeleted() const;
bool IsDeletedIn( const ScChangeAction* ) const;
bool IsDeletedInDelType( ScChangeActionType ) const;
void RemoveAllDeletedIn();
@ -833,9 +832,7 @@ public:
// NewCell
bool IsMatrixOrigin() const;
bool IsMatrixReference() const;
// OldCell
bool IsOldMatrixOrigin() const;
bool IsOldMatrixReference() const;
};

View file

@ -345,11 +345,6 @@ bool ScChangeAction::IsDeletedIn() const
return GetDeletedIn() != NULL;
}
bool ScChangeAction::IsDeleted() const
{
return IsDeleteType() || IsDeletedIn();
}
bool ScChangeAction::IsDeletedIn( const ScChangeAction* p ) const
{
ScChangeActionLinkEntry* pL = GetDeletedIn();
@ -2155,16 +2150,6 @@ bool ScChangeActionContent::IsMatrixOrigin() const
return GetContentCellType(GetNewCell()) == SC_CACCT_MATORG;
}
bool ScChangeActionContent::IsMatrixReference() const
{
return GetContentCellType(GetNewCell()) == SC_CACCT_MATREF;
}
bool ScChangeActionContent::IsOldMatrixOrigin() const
{
return GetContentCellType(GetOldCell()) == SC_CACCT_MATORG;
}
bool ScChangeActionContent::IsOldMatrixReference() const
{
return GetContentCellType(GetOldCell()) == SC_CACCT_MATREF;

View file

@ -123,7 +123,6 @@ private:
void calcMargins(long& rTop, long& rLeft, long& rBottom, long& rRight, double nPPTX, double nPPTY) const;
void calcPaperSize(Size& rPaperSize, const Rectangle& rAlignRect, double nPPTX, double nPPTY) const;
void getEngineSize(ScFieldEditEngine* pEngine, long& rWidth, long& rHeight) const;
long getEngineWidth(ScFieldEditEngine* pEngine) const;
bool hasLineBreak() const;
bool isHyperlinkCell() const;

View file

@ -2327,14 +2327,6 @@ void ScOutputData::DrawEditParam::getEngineSize(ScFieldEditEngine* pEngine, long
rHeight = nEngineHeight;
}
long ScOutputData::DrawEditParam::getEngineWidth(ScFieldEditEngine* pEngine) const
{
if (mbBreak && meOrient != SVX_ORIENTATION_STACKED && !mbAsianVertical)
return 0;
else
return static_cast<long>(pEngine->CalcTextWidth());
}
bool ScOutputData::DrawEditParam::hasLineBreak() const
{
return (mbBreak || (meOrient == SVX_ORIENTATION_STACKED) || mbAsianVertical);

View file

@ -127,9 +127,6 @@ ScAddInDocs::Insert(ScAddInDocs const*, unsigned short, unsigned short)
ScAddInDocs::Insert(ScDocument* const&, unsigned short&)
ScAddInDocs::Insert(ScDocument* const*, unsigned short)
ScAddInDocs::Remove(ScDocument* const&, unsigned short)
ScChangeAction::IsDeleted() const
ScChangeActionContent::IsMatrixReference() const
ScChangeActionContent::IsOldMatrixOrigin() const
ScChangeActionContent::SetNewValue(rtl::OUString const&, ScDocument*)
ScChartListener::ScChartListener(rtl::OUString const&, ScDocument*, ScRange const&)
ScChartListener::SetName(rtl::OUString const&)
@ -168,7 +165,6 @@ ScHTMLColOffset_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(
ScMyCellInfo::ScMyCellInfo()
ScNameDefDlg::LinkStubEdModifyHdl(void*, void*)
ScNamedRangeObj::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
ScOutputData::DrawEditParam::getEngineWidth(ScFieldEditEngine*) const
ScRTFColTwips::Insert(ScRTFColTwips const*, unsigned short, unsigned short)
ScRTFColTwips::Insert(unsigned long const&, unsigned short&)
ScRTFColTwips::Insert(unsigned long const*, unsigned short)