summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-22 17:09:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 08:08:00 +0100
commitad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca (patch)
tree5b11b7812b84c2647c64d1002bad7ed8a1d1754d /include
parenta53577e6ff3629c4e9219616960d89eea9463593 (diff)
Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/extract.hxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/comphelper/extract.hxx b/include/comphelper/extract.hxx
index 6d401e66ae16..07acf4258417 100644
--- a/include/comphelper/extract.hxx
+++ b/include/comphelper/extract.hxx
@@ -20,7 +20,6 @@
#define INCLUDED_COMPHELPER_EXTRACT_HXX
#include <com/sun/star/lang/IllegalArgumentException.hpp>
-#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/TypeClass.hpp>
#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/uno/Any.hxx>
@@ -101,24 +100,6 @@ inline ::com::sun::star::uno::Any SAL_CALL enum2any( E eEnum )
}
/**
- * Extracts interface from an any. If given any does not hold the demanded interface,
- * it will be queried for it.
- * If no interface is available, the out ref will be cleared.
- *<BR>
- * @param rxOut [out] demanded interface
- * @param rAny interface
- * @return sal_True if any reference (including the null ref) was retrieved from any else sal_False.
- */
-template< class T >
-inline bool SAL_CALL extractInterface(
- ::com::sun::star::uno::Reference< T > & rxOut,
- const ::com::sun::star::uno::Any & rAny )
-{
- rxOut.clear();
- return (rAny >>= rxOut);
-}
-
-/**
* extracts a boolean either as a sal_Bool or an integer from
* an any. If there is no sal_Bool or integer inside the any
* a ::com::sun::star::lang::IllegalArgumentException is thrown