include/comphelper/InlineContainer.hxx | 28 ---------------------------- 1 file changed, 28 deletions(-)
New commits: commit 68d88e2bda287f5656b7c1631dc4ac3e72e2f303 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Apr 22 22:12:10 2016 +0200 Remove unused comphelper::MakeSequence Change-Id: I0f34fddbfd709455f1aa2f1bfaa70d72a2752f74 Reviewed-on: https://gerrit.libreoffice.org/24342 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/include/comphelper/InlineContainer.hxx b/include/comphelper/InlineContainer.hxx index 384203a..d5c3e10 100644 --- a/include/comphelper/InlineContainer.hxx +++ b/include/comphelper/InlineContainer.hxx @@ -19,40 +19,12 @@ #ifndef INCLUDED_COMPHELPER_INLINECONTAINER_HXX #define INCLUDED_COMPHELPER_INLINECONTAINER_HXX -#include <com/sun/star/uno/Sequence.hxx> - #include <map> #include <set> namespace comphelper { -/** Creates a UNO-Sequence which contains an arbitrary number of elements. - Notice, that every call of the operator() issues a realloc, so this is not - suitable to create very large sequences. - - usage: - - uno::Sequence< t >( MakeSequence< t >( t_1 )( t_2 )...( t_n ) ); - */ -template < typename T > -class MakeSequence : public css::uno::Sequence< T > -{ -public: - explicit MakeSequence(const T &a) - : css::uno::Sequence< T >( 1 ) - { - this->operator[](0) = a; - } - MakeSequence& operator()(const T &a) - { - this->realloc( this->getLength() + 1 ); - this->operator[]( this->getLength() - 1 ) = a; - return *this; - } -}; - - /** Creates a set which contains an arbitrary number of elements. usage: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits