diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-10 21:51:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 14:46:45 +0100 |
commit | 2106d8e648449d34b195068eef5f672a14ea64a8 (patch) | |
tree | ce43da57f52c0bad223d123a37129da918fb5668 /oox | |
parent | ef877aab7ee88f03b36447af82904fc94938f569 (diff) |
callcatcher: update unused code
Change-Id: Id5f730fc447b11000b266954f9e7f5287bad02f4
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 ) |