summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-11 00:16:26 +0800
committerMichael Meeks <michael.meeks@suse.com>2012-02-13 15:58:48 +0000
commit952b46570c175dda8b975ad3bc8ef56e747796be (patch)
treeba04d4733ab62ef8f954d745f2214255f56992fb /sc
parentacddd09bc2e635a63c3d924eec6026c5254cd576 (diff)
Remove unused code
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/chgtrack.hxx3
-rw-r--r--sc/source/core/tool/chgtrack.cxx15
-rw-r--r--sc/source/ui/inc/output.hxx1
-rw-r--r--sc/source/ui/view/output2.cxx8
4 files changed, 0 insertions, 27 deletions
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 16b86983f4b7..1c0b664b618c 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 82fbd935c279..9a2ccb5aac6a 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 9a81555eab05..f9a14a77a93a 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 82a9905677a1..8122c9489b28 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);