summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorElton Chung <elton@elton.tk>2012-01-31 12:36:47 +0000
committerNoel Power <noel.power@novell.com>2012-01-31 12:37:18 +0000
commit9c66fca6ceaa3ba4ad79264a56a992828a92f536 (patch)
tree446bb75c13d77ee00549db0629fc4a1e4410704b /sc
parent4171501c49e345266e892e35e6c224deb1b34f55 (diff)
Remove unsed code
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/scdll.hxx1
-rw-r--r--sc/source/core/inc/ddelink.hxx1
-rw-r--r--sc/source/core/tool/ddelink.cxx11
-rw-r--r--sc/source/ui/app/scdll.cxx10
-rw-r--r--sc/source/ui/dbgui/fieldwnd.cxx5
-rw-r--r--sc/source/ui/inc/areasave.hxx1
-rw-r--r--sc/source/ui/inc/cellmergeoption.hxx1
-rw-r--r--sc/source/ui/inc/fieldwnd.hxx1
-rw-r--r--sc/source/ui/inc/scuitphfedit.hxx4
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx39
-rw-r--r--sc/source/ui/undo/areasave.cxx5
-rw-r--r--sc/source/ui/view/cellmergeoption.cxx9
12 files changed, 0 insertions, 88 deletions
diff --git a/sc/inc/scdll.hxx b/sc/inc/scdll.hxx
index 93cff7e5bad0..43a9c9fbf051 100644
--- a/sc/inc/scdll.hxx
+++ b/sc/inc/scdll.hxx
@@ -61,7 +61,6 @@ public:
// DLL-init/exit-code must be linked to the DLL only
static void Init(); // called directly after loading the DLL
- static void Exit(); // called directly befor unloading the DLL
static sal_uLong DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter,
SfxFilterFlags nMust, SfxFilterFlags nDont );
diff --git a/sc/source/core/inc/ddelink.hxx b/sc/source/core/inc/ddelink.hxx
index e3794e4bdaa2..216d6d60f052 100644
--- a/sc/source/core/inc/ddelink.hxx
+++ b/sc/source/core/inc/ddelink.hxx
@@ -87,7 +87,6 @@ public:
const String& GetItem() const { return aItem; }
sal_uInt8 GetMode() const { return nMode; }
- void ResetValue(); // Wert zuruecksetzen
void TryUpdate();
sal_Bool NeedsUpdate() const { return bNeedUpdate; }
diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index 3bd75aebb350..5d36e5281d9b 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -228,17 +228,6 @@ sfx2::SvBaseLink::UpdateResult ScDdeLink::DataChanged(
return SUCCESS;
}
-void ScDdeLink::ResetValue()
-{
- pResult.reset();
-
- // Es hat sich was getan...
- // Tracking, FID_DATACHANGED etc. passiert von aussen
-
- if (HasListeners())
- Broadcast( ScHint( SC_HINT_DATACHANGED, ScAddress(), NULL ) );
-}
-
void ScDdeLink::ListenersGone()
{
sal_Bool bWas = bIsInUpdate;
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 9cf95556127f..0a57bf693321 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -312,16 +312,6 @@ void ScDLL::Init()
// StarOne Services are now handled in the registry
}
-void ScDLL::Exit()
-{
- // the SxxModule must be destroyed
- ScModule **ppShlPtr = (ScModule**) GetAppData(SHL_CALC);
- delete (*ppShlPtr);
- (*ppShlPtr) = NULL;
-
- // ScGlobal::Clear ist schon im Module-dtor
-}
-
//------------------------------------------------------------------
// Statusbar
//------------------------------------------------------------------
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 40eb873cea28..9139be419d59 100644
--- a/sc/source/ui/dbgui/fieldwnd.cxx
+++ b/sc/source/ui/dbgui/fieldwnd.cxx
@@ -254,11 +254,6 @@ size_t ScDPFieldControlBase::GetSelectedField() const
return mnFieldSelected;
}
-void ScDPFieldControlBase::SetSelectedField(size_t nSelected)
-{
- mnFieldSelected = nSelected;
-}
-
vector<ScDPFieldControlBase::FieldName>& ScDPFieldControlBase::GetFieldNames()
{
return maFieldNames;
diff --git a/sc/source/ui/inc/areasave.hxx b/sc/source/ui/inc/areasave.hxx
index c9ff34889a87..1a0b1cd41dbe 100644
--- a/sc/source/ui/inc/areasave.hxx
+++ b/sc/source/ui/inc/areasave.hxx
@@ -78,7 +78,6 @@ public:
const ScAreaLinkSaver* operator[](size_t nIndex) const;
size_t size() const;
- void clear();
void push_back(ScAreaLinkSaver* p);
};
diff --git a/sc/source/ui/inc/cellmergeoption.hxx b/sc/source/ui/inc/cellmergeoption.hxx
index ad5fe34d41ca..62e427960f88 100644
--- a/sc/source/ui/inc/cellmergeoption.hxx
+++ b/sc/source/ui/inc/cellmergeoption.hxx
@@ -44,7 +44,6 @@ struct ScCellMergeOption
SCROW mnEndRow;
bool mbCenter;
- explicit ScCellMergeOption();
explicit ScCellMergeOption(const ScRange& rRange);
explicit ScCellMergeOption(SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
diff --git a/sc/source/ui/inc/fieldwnd.hxx b/sc/source/ui/inc/fieldwnd.hxx
index 2b232cf9428b..49fc2edeba1e 100644
--- a/sc/source/ui/inc/fieldwnd.hxx
+++ b/sc/source/ui/inc/fieldwnd.hxx
@@ -149,7 +149,6 @@ public:
void GetExistingIndex( const Point& rPos, size_t& rnIndex );
size_t GetSelectedField() const;
- void SetSelectedField(size_t nSelected);
/** Selects the next field. Called i.e. after moving a field from SELECT area. */
void SelectNext();
diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx
index b8c3e20b8136..f14d5fc2b5fc 100644
--- a/sc/source/ui/inc/scuitphfedit.hxx
+++ b/sc/source/ui/inc/scuitphfedit.hxx
@@ -120,7 +120,6 @@ class ScRightHeaderEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static sal_uInt16* GetRanges();
private:
ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -132,7 +131,6 @@ class ScLeftHeaderEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static sal_uInt16* GetRanges();
private:
ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -144,7 +142,6 @@ class ScRightFooterEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static sal_uInt16* GetRanges();
private:
ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -156,7 +153,6 @@ class ScLeftFooterEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static sal_uInt16* GetRanges();
private:
ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet );
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index d688d6d1c50c..6eee2dd481b3 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -65,26 +65,8 @@
// STATIC DATA -----------------------------------------------------------
-static sal_uInt16 pPageRightHeaderRanges[] = { SID_SCATTR_PAGE_HEADERRIGHT,
- SID_SCATTR_PAGE_HEADERRIGHT,
- 0 };
-
-static sal_uInt16 pPageRightFooterRanges[] = { SID_SCATTR_PAGE_FOOTERRIGHT,
- SID_SCATTR_PAGE_FOOTERRIGHT,
- 0 };
-
-static sal_uInt16 pPageLeftHeaderRanges[] = { SID_SCATTR_PAGE_HEADERLEFT,
- SID_SCATTR_PAGE_HEADERLEFT,
- 0 };
-
-static sal_uInt16 pPageLeftFooterRanges[] = { SID_SCATTR_PAGE_FOOTERLEFT,
- SID_SCATTR_PAGE_FOOTERLEFT,
- 0 };
-
-
static ScEditWindow* pActiveEdWnd = NULL;
-
//========================================================================
// class ScHFEditPage
//
@@ -927,15 +909,9 @@ ScRightHeaderEditPage::ScRightHeaderEditPage( Window* pParent, const SfxItemSet&
// -----------------------------------------------------------------------
-sal_uInt16* ScRightHeaderEditPage::GetRanges()
- { return pPageRightHeaderRanges; }
-
-// -----------------------------------------------------------------------
-
SfxTabPage* ScRightHeaderEditPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
{ return ( new ScRightHeaderEditPage( pParent, rCoreSet ) ); };
-
//========================================================================
// class ScLeftHeaderEditPage
//========================================================================
@@ -947,11 +923,6 @@ ScLeftHeaderEditPage::ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& r
// -----------------------------------------------------------------------
-sal_uInt16* ScLeftHeaderEditPage::GetRanges()
- { return pPageLeftHeaderRanges; }
-
-// -----------------------------------------------------------------------
-
SfxTabPage* ScLeftHeaderEditPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
{ return ( new ScLeftHeaderEditPage( pParent, rCoreSet ) ); };
@@ -966,11 +937,6 @@ ScRightFooterEditPage::ScRightFooterEditPage( Window* pParent, const SfxItemSet&
// -----------------------------------------------------------------------
-sal_uInt16* ScRightFooterEditPage::GetRanges()
- { return pPageRightFooterRanges; }
-
-// -----------------------------------------------------------------------
-
SfxTabPage* ScRightFooterEditPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
{ return ( new ScRightFooterEditPage( pParent, rCoreSet ) ); };
@@ -985,11 +951,6 @@ ScLeftFooterEditPage::ScLeftFooterEditPage( Window* pParent, const SfxItemSet& r
// -----------------------------------------------------------------------
-sal_uInt16* ScLeftFooterEditPage::GetRanges()
- { return pPageLeftFooterRanges; }
-
-// -----------------------------------------------------------------------
-
SfxTabPage* ScLeftFooterEditPage::Create( Window* pParent, const SfxItemSet& rCoreSet )
{ return ( new ScLeftFooterEditPage( pParent, rCoreSet ) ); };
diff --git a/sc/source/ui/undo/areasave.cxx b/sc/source/ui/undo/areasave.cxx
index 7d4e572a4b18..e3821027389a 100644
--- a/sc/source/ui/undo/areasave.cxx
+++ b/sc/source/ui/undo/areasave.cxx
@@ -214,11 +214,6 @@ size_t ScAreaLinkSaveCollection::size() const
return maData.size();
}
-void ScAreaLinkSaveCollection::clear()
-{
- maData.clear();
-}
-
void ScAreaLinkSaveCollection::push_back(ScAreaLinkSaver* p)
{
maData.push_back(p);
diff --git a/sc/source/ui/view/cellmergeoption.cxx b/sc/source/ui/view/cellmergeoption.cxx
index 68e9d8a13bc6..4c5f5734d73e 100644
--- a/sc/source/ui/view/cellmergeoption.cxx
+++ b/sc/source/ui/view/cellmergeoption.cxx
@@ -30,15 +30,6 @@
#include "cellmergeoption.hxx"
#include "address.hxx"
-ScCellMergeOption::ScCellMergeOption() :
- mnStartCol(0),
- mnStartRow(0),
- mnEndCol(0),
- mnEndRow(0),
- mbCenter(false)
-{
-}
-
ScCellMergeOption::ScCellMergeOption(const ScRange& rRange) :
mnStartCol(rRange.aStart.Col()),
mnStartRow(rRange.aStart.Row()),