From 90e8ad7ab779740c7381d26ffe7d08acc3a9ff96 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Jul 2015 15:39:17 +0200 Subject: loplugin:unusedmethods scripting,sc Change-Id: I0016aefce1aad3a89bd23dcec6fbab58a7c844d7 Reviewed-on: https://gerrit.libreoffice.org/17263 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/inc/util/MiscUtils.hxx | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'scripting/source/inc/util/MiscUtils.hxx') 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 -- cgit