summaryrefslogtreecommitdiff
path: root/sc/inc/convuno.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-22 10:20:03 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-22 13:02:57 +0000
commit96d44c9b077a6cc8068067a795dc63248ab90fea (patch)
tree3a6df22d2df616d8c2568264e47a5219475cfc90 /sc/inc/convuno.hxx
parent561cebeeba2155a7ebedbea885c9d7bf43102ec6 (diff)
loplugin:unusedmethods sc
Change-Id: I7bdb1889a942d63370731764a58f4ab524dedd8a Reviewed-on: https://gerrit.libreoffice.org/17287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc/convuno.hxx')
-rw-r--r--sc/inc/convuno.hxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sc/inc/convuno.hxx b/sc/inc/convuno.hxx
index 6c2c5ec74e0c..f2c4c20ed835 100644
--- a/sc/inc/convuno.hxx
+++ b/sc/inc/convuno.hxx
@@ -50,27 +50,15 @@ public:
static inline void FillApiRange(
::com::sun::star::table::CellRangeAddress& rApiRange,
const ScRange& rScRange );
- // CellAddress -> CellRangeAddress
- static inline void FillApiRange(
- ::com::sun::star::table::CellRangeAddress& rApiRange,
- const ::com::sun::star::table::CellAddress& rApiAddress );
// CellRangeAddress-Start -> CellAddress
static inline void FillApiStartAddress(
::com::sun::star::table::CellAddress& rApiAddress,
const ::com::sun::star::table::CellRangeAddress& rApiRange );
- // CellRangeAddress-End -> CellAddress
- static inline void FillApiEndAddress(
- ::com::sun::star::table::CellAddress& rApiAddress,
- const ::com::sun::star::table::CellRangeAddress& rApiRange );
/** Returns true, if the passed ranges have at least one common cell. */
static inline bool Intersects(
const ::com::sun::star::table::CellRangeAddress& rApiARange1,
const ::com::sun::star::table::CellRangeAddress& rApiARange2 );
- /** Returns true, if the passed address rApiInner is inside the passed range rApiOuter. */
- static inline bool Contains(
- const ::com::sun::star::table::CellRangeAddress& rApiOuter,
- const ::com::sun::star::table::CellAddress& rApiInner );
/** Returns true, if the passed range rApiInner is completely inside the passed range rApiOuter. */
static inline bool Contains(
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
@@ -112,15 +100,6 @@ inline void ScUnoConversion::FillApiRange(
rApiRange.EndRow = rScRange.aEnd.Row();
}
-inline void ScUnoConversion::FillApiRange(
- ::com::sun::star::table::CellRangeAddress& rApiRange,
- const ::com::sun::star::table::CellAddress& rApiAddress )
-{
- rApiRange.StartColumn = rApiRange.EndColumn = rApiAddress.Column;
- rApiRange.StartRow = rApiRange.EndRow = rApiAddress.Row;
- rApiRange.Sheet = rApiAddress.Sheet;
-}
-
inline void ScUnoConversion::FillApiStartAddress(
::com::sun::star::table::CellAddress& rApiAddress,
const ::com::sun::star::table::CellRangeAddress& rApiRange )
@@ -130,15 +109,6 @@ inline void ScUnoConversion::FillApiStartAddress(
rApiAddress.Sheet = rApiRange.Sheet;
}
-inline void ScUnoConversion::FillApiEndAddress(
- ::com::sun::star::table::CellAddress& rApiAddress,
- const ::com::sun::star::table::CellRangeAddress& rApiRange )
-{
- rApiAddress.Column = rApiRange.EndColumn;
- rApiAddress.Row = rApiRange.EndRow;
- rApiAddress.Sheet = rApiRange.Sheet;
-}
-
inline bool ScUnoConversion::Intersects(
const ::com::sun::star::table::CellRangeAddress& rApiRange1,
const ::com::sun::star::table::CellRangeAddress& rApiRange2 )
@@ -150,15 +120,6 @@ inline bool ScUnoConversion::Intersects(
inline bool ScUnoConversion::Contains(
const ::com::sun::star::table::CellRangeAddress& rApiOuter,
- const ::com::sun::star::table::CellAddress& rApiInner )
-{
- return (rApiOuter.Sheet == rApiInner.Sheet) &&
- (rApiOuter.StartColumn <= rApiInner.Column) && (rApiInner.Column <= rApiOuter.EndColumn) &&
- (rApiOuter.StartRow <= rApiInner.Row) && (rApiInner.Row <= rApiOuter.EndRow);
-}
-
-inline bool ScUnoConversion::Contains(
- const ::com::sun::star::table::CellRangeAddress& rApiOuter,
const ::com::sun::star::table::CellRangeAddress& rApiInner )
{
return (rApiOuter.Sheet == rApiInner.Sheet) &&