summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-02-09 20:37:03 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2012-02-10 21:41:48 +0100
commit55cac8c903efb51805448de6bf261619ce7d2a3d (patch)
treec716f8873782a8703836fdffd7bf91e5ed03b22e /sc
parenta8326b3af400270f5c6819204fd5f56d7abdd188 (diff)
unusedcode: remove XclObjId and unused typedefs
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xlescher.cxx26
-rw-r--r--sc/source/filter/inc/xiescher.hxx6
-rw-r--r--sc/source/filter/inc/xlescher.hxx15
3 files changed, 0 insertions, 47 deletions
diff --git a/sc/source/filter/excel/xlescher.cxx b/sc/source/filter/excel/xlescher.cxx
index 3d87a897aa39..4c894bf2ae07 100644
--- a/sc/source/filter/excel/xlescher.cxx
+++ b/sc/source/filter/excel/xlescher.cxx
@@ -46,32 +46,6 @@ using ::com::sun::star::drawing::XControlShape;
using ::com::sun::star::awt::XControlModel;
using ::com::sun::star::script::ScriptEventDescriptor;
-// Structs and classes ========================================================
-
-XclObjId::XclObjId() :
- mnScTab( SCTAB_INVALID ),
- mnObjId( EXC_OBJ_INVALID_ID )
-{
-}
-
-XclObjId::XclObjId( SCTAB nScTab, sal_uInt16 nObjId ) :
- mnScTab( nScTab ),
- mnObjId( nObjId )
-{
-}
-
-bool operator==( const XclObjId& rL, const XclObjId& rR )
-{
- return (rL.mnScTab == rR.mnScTab) && (rL.mnObjId == rR.mnObjId);
-}
-
-bool operator<( const XclObjId& rL, const XclObjId& rR )
-{
- return (rL.mnScTab < rR.mnScTab) || ((rL.mnScTab == rR.mnScTab) && (rL.mnObjId < rR.mnObjId));
-}
-
-// ----------------------------------------------------------------------------
-
namespace {
/** Returns the scaling factor to calculate coordinates from twips. */
diff --git a/sc/source/filter/inc/xiescher.hxx b/sc/source/filter/inc/xiescher.hxx
index e7e2db587d5e..2843b4ab2c5e 100644
--- a/sc/source/filter/inc/xiescher.hxx
+++ b/sc/source/filter/inc/xiescher.hxx
@@ -1258,12 +1258,6 @@ private:
// ------------------------------------------------------------------------
private:
- typedef ::std::map< sal_Size, XclImpDrawObjRef > XclImpObjMap;
- typedef ::std::map< XclObjId, XclImpDrawObjRef > XclImpObjMapById;
- typedef boost::shared_ptr< XclImpObjTextData > XclImpObjTextRef;
- typedef ::std::map< sal_Size, XclImpObjTextRef > XclImpObjTextMap;
- typedef ::std::vector< XclObjId > XclObjIdVec;
-
typedef ::std::map< sal_uInt16, String > DefObjNameMap;
typedef boost::shared_ptr< XclImpSheetDrawing > XclImpSheetDrawingRef;
typedef ::std::map< SCTAB, XclImpSheetDrawingRef > XclImpSheetDrawingMap;
diff --git a/sc/source/filter/inc/xlescher.hxx b/sc/source/filter/inc/xlescher.hxx
index 04396af72009..6213f121fc54 100644
--- a/sc/source/filter/inc/xlescher.hxx
+++ b/sc/source/filter/inc/xlescher.hxx
@@ -296,21 +296,6 @@ const sal_uInt16 EXC_ID_TXO = 0x01B6;
// Structs and classes ========================================================
-/** Identifies a drawing object by sheet index and object identifier. */
-struct XclObjId
-{
- SCTAB mnScTab; /// Calc sheet index.
- sal_uInt16 mnObjId; /// Excel object identifier.
-
- explicit XclObjId();
- explicit XclObjId( SCTAB nScTab, sal_uInt16 nObjId );
-};
-
-bool operator==( const XclObjId& rL, const XclObjId& rR );
-bool operator<( const XclObjId& rL, const XclObjId& rR );
-
-// ----------------------------------------------------------------------------
-
/** Represents the position (anchor) of an object in a Calc document. */
struct XclObjAnchor : public XclRange
{