diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-21 15:39:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-22 07:02:34 +0000 |
commit | 90e8ad7ab779740c7381d26ffe7d08acc3a9ff96 (patch) | |
tree | 05f271eff42a09203d07326ec7752ff5bfe40f08 /scripting/source/inc/util/MiscUtils.hxx | |
parent | b975aceec3c5f101916b525c10c44408b3e9da9d (diff) |
loplugin:unusedmethods scripting,sc
Change-Id: I0016aefce1aad3a89bd23dcec6fbab58a7c844d7
Reviewed-on: https://gerrit.libreoffice.org/17263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'scripting/source/inc/util/MiscUtils.hxx')
-rw-r--r-- | scripting/source/inc/util/MiscUtils.hxx | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/scripting/source/inc/util/MiscUtils.hxx b/scripting/source/inc/util/MiscUtils.hxx index 80d8d6860cd0..74ea6cead460 100644 --- a/scripting/source/inc/util/MiscUtils.hxx +++ b/scripting/source/inc/util/MiscUtils.hxx @@ -44,7 +44,8 @@ namespace sf_misc class MiscUtils { public: - static css::uno::Sequence< OUString > allOpenTDocUrls( const css::uno::Reference< css::uno::XComponentContext >& xCtx) + +static css::uno::Sequence< OUString > allOpenTDocUrls( const css::uno::Reference< css::uno::XComponentContext >& xCtx) { css::uno::Sequence< OUString > result; try @@ -62,8 +63,8 @@ public: return result; } - static OUString xModelToTdocUrl( const css::uno::Reference< css::frame::XModel >& xModel, - const css::uno::Reference< css::uno::XComponentContext >& xContext ) +static OUString xModelToTdocUrl( const css::uno::Reference< css::frame::XModel >& xModel, + const css::uno::Reference< css::uno::XComponentContext >& xContext ) { css::uno::Reference< css::lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() ); @@ -102,7 +103,8 @@ public: OSL_FAIL( "Unable to obtain URL for document model!" ); return OUString(); } - static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString& url ) + +static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString& url ) { css::uno::Any result; @@ -128,7 +130,7 @@ public: } - static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString& prop ) +static css::uno::Any getUCBProperty( ::ucbhelper::Content& content, OUString& prop ) { css::uno::Any result; try @@ -141,18 +143,6 @@ public: return result; } -private: -static OUString parseLocationName( const OUString& location ) -{ - // strip out the last leaf of location name - // e.g. file://dir1/dir2/Blah.sxw - > Blah.sxw - OUString temp = location; - INetURLObject aURLObj( temp ); - if ( !aURLObj.HasError() ) - temp = aURLObj.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); - return temp; -} - }; } // namespace sf_misc #endif |