summaryrefslogtreecommitdiff
path: root/include/oox/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-29 12:40:47 +0200
committerNoel Grandin <noel@peralex.com>2015-09-29 15:08:43 +0200
commit34180700b2686c97cdce0b52ca9578a41a153035 (patch)
tree073f3753e4483f30efa3c7c769f23971e6a046d5 /include/oox/helper
parente710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff)
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'include/oox/helper')
-rw-r--r--include/oox/helper/containerhelper.hxx24
-rw-r--r--include/oox/helper/refvector.hxx7
2 files changed, 0 insertions, 31 deletions
diff --git a/include/oox/helper/containerhelper.hxx b/include/oox/helper/containerhelper.hxx
index e0a09895a0c5..a1a8d541fe27 100644
--- a/include/oox/helper/containerhelper.hxx
+++ b/include/oox/helper/containerhelper.hxx
@@ -283,17 +283,6 @@ public:
static ::com::sun::star::uno::Sequence< typename VectorType::value_type >
vectorToSequence( const VectorType& rVector );
- /** Creates a UNO sequence from a std::map with copies of all elements.
-
- @param rMap The map to be converted to a sequence.
-
- @return A com.sun.star.uno.Sequence object with copies of all objects
- contained in the passed map.
- */
- template< typename MapType >
- static ::com::sun::star::uno::Sequence< typename MapType::mapped_type >
- mapToSequence( const MapType& rMap );
-
/** Creates a UNO sequence of sequences from a matrix with copies of all elements.
@param rMatrix The matrix to be converted to a sequence of sequences.
@@ -370,19 +359,6 @@ template< typename VectorType >
return ::com::sun::star::uno::Sequence< ValueType >( &rVector.front(), static_cast< sal_Int32 >( rVector.size() ) );
}
-template< typename MapType >
-/*static*/ ::com::sun::star::uno::Sequence< typename MapType::mapped_type > ContainerHelper::mapToSequence( const MapType& rMap )
-{
- typedef typename MapType::mapped_type ValueType;
- if( rMap.empty() )
- return ::com::sun::star::uno::Sequence< ValueType >();
- ::com::sun::star::uno::Sequence< ValueType > aSeq( static_cast< sal_Int32 >( rMap.size() ) );
- sal_Int32 nIndex = 0;
- for( typename MapType::const_iterator aIt = rMap.begin(), aEnd = rMap.end(); aIt != aEnd; ++aIt, ++nIndex )
- aSeq[ nIndex ] = *aIt;
- return aSeq;
-}
-
template< typename MatrixType >
/*static*/ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< typename MatrixType::value_type > > ContainerHelper::matrixToSequenceSequence( const MatrixType& rMatrix )
{
diff --git a/include/oox/helper/refvector.hxx b/include/oox/helper/refvector.hxx
index c5b13d5c9a2e..b98d961e203f 100644
--- a/include/oox/helper/refvector.hxx
+++ b/include/oox/helper/refvector.hxx
@@ -46,13 +46,6 @@ public:
typedef typename container_type::size_type size_type;
public:
- /** Returns true, if the object with the passed index exists. Returns
- false, if the vector element exists but is an empty reference. */
- bool has( sal_Int32 nIndex ) const
- {
- const value_type* pxRef = getRef( nIndex );
- return pxRef && pxRef->get();
- }
/** Returns a reference to the object with the passed index, or 0 on error. */
value_type get( sal_Int32 nIndex ) const