diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/oox/helper/containerhelper.hxx | 2 | ||||
-rw-r--r-- | oox/source/helper/containerhelper.cxx | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/oox/inc/oox/helper/containerhelper.hxx b/oox/inc/oox/helper/containerhelper.hxx index ce71d5216b94..bed8990dcd92 100644 --- a/oox/inc/oox/helper/containerhelper.hxx +++ b/oox/inc/oox/helper/containerhelper.hxx @@ -86,8 +86,6 @@ public: /** Returns the ordered list of all value ranges. */ inline const ValueRangeVector& getRanges() const { return maRanges; } - /** Returns an intersection of the range list and the passed range. */ - ValueRangeVector getIntersection( const ValueRange& rRange ) const; private: ValueRangeVector maRanges; diff --git a/oox/source/helper/containerhelper.cxx b/oox/source/helper/containerhelper.cxx index a19e9b40713b..a888552d8659 100644 --- a/oox/source/helper/containerhelper.cxx +++ b/oox/source/helper/containerhelper.cxx @@ -92,16 +92,6 @@ void ValueRangeSet::insert( const ValueRange& rRange ) } } -ValueRangeVector ValueRangeSet::getIntersection( const ValueRange& rRange ) const -{ - ValueRangeVector aRanges; - // find the range that contains nFirst or the first range that follows nFirst - ValueRangeVector::const_iterator aIt = ::std::lower_bound( maRanges.begin(), maRanges.end(), rRange, ValueRangeComp() ); - for( ValueRangeVector::const_iterator aEnd = maRanges.end(); (aIt != aEnd) && (aIt->mnFirst <= rRange.mnLast); ++aIt ) - aRanges.push_back( ValueRange( ::std::max( aIt->mnFirst, rRange.mnFirst ), ::std::min( aIt->mnLast, rRange.mnLast ) ) ); - return aRanges; -} - // ============================================================================ Reference< XIndexContainer > ContainerHelper::createIndexContainer( const Reference< XComponentContext >& rxContext ) |