summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-30 17:12:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-02 16:49:27 +0200
commit8ece4abb6f3a5543e011f70abbe52c65d46cf567 (patch)
treea0e772530b6978437436386bc6d1d8ce04df326b /stoc
parent63389fd12c7bea6f8153c0e595ade0cef4d83ef5 (diff)
-Werror,-Wunused-function
Change-Id: I68d030642fc3f396f7d95602847725bb8299bebf
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/security/access_controller.cxx11
-rw-r--r--stoc/source/security/file_policy.cxx12
2 files changed, 0 insertions, 23 deletions
diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx
index 1adbf290791f..49fea7f2a026 100644
--- a/stoc/source/security/access_controller.cxx
+++ b/stoc/source/security/access_controller.cxx
@@ -310,17 +310,6 @@ Any acc_CurrentContext::getValueByName( OUString const & name )
//##################################################################################################
-//--------------------------------------------------------------------------------------------------
-static inline void dispose( Reference< XInterface > const & x )
- SAL_THROW( (RuntimeException) )
-{
- Reference< lang::XComponent > xComp( x, UNO_QUERY );
- if (xComp.is())
- {
- xComp->dispose();
- }
-}
-//--------------------------------------------------------------------------------------------------
static inline Reference< security::XAccessControlContext > getDynamicRestriction(
Reference< XCurrentContext > const & xContext )
SAL_THROW( (RuntimeException) )
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 344b968c3063..70cc32551b44 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -51,18 +51,6 @@ using namespace ::com::sun::star::uno;
namespace stoc_sec
{
-//--------------------------------------------------------------------------------------------------
-static inline void dispose( Reference< XInterface > const & x )
- SAL_THROW( (RuntimeException) )
-{
- Reference< lang::XComponent > xComp( x, UNO_QUERY );
- if (xComp.is())
- {
- xComp->dispose();
- }
-}
-
-//##################################################################################################
struct MutexHolder
{