[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy
Michael Meeks
michael at kemper.freedesktop.org
Mon Feb 13 07:59:47 PST 2012
sc/inc/chgtrack.hxx | 3 ---
sc/source/core/tool/chgtrack.cxx | 15 ---------------
sc/source/ui/inc/output.hxx | 1 -
sc/source/ui/view/output2.cxx | 8 --------
unusedcode.easy | 4 ----
5 files changed, 31 deletions(-)
New commits:
commit 952b46570c175dda8b975ad3bc8ef56e747796be
Author: Elton Chung <elton at layerjet.com>
Date: Sat Feb 11 00:16:26 2012 +0800
Remove unused code
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 16b8698..1c0b664 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -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;
};
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 82fbd93..9a2ccb5 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -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;
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index 9a81555..f9a14a7 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -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;
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 82a9905..8122c94 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -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);
diff --git a/unusedcode.easy b/unusedcode.easy
index 540da7c..bf8ac97 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -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)
More information about the Libreoffice-commits
mailing list