diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-30 17:12:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:49:27 +0200 |
commit | 8ece4abb6f3a5543e011f70abbe52c65d46cf567 (patch) | |
tree | a0e772530b6978437436386bc6d1d8ce04df326b /stoc/source/security | |
parent | 63389fd12c7bea6f8153c0e595ade0cef4d83ef5 (diff) |
-Werror,-Wunused-function
Change-Id: I68d030642fc3f396f7d95602847725bb8299bebf
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/access_controller.cxx | 11 | ||||
-rw-r--r-- | stoc/source/security/file_policy.cxx | 12 |
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 { |