diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-10 21:51:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 14:46:45 +0100 |
commit | 2106d8e648449d34b195068eef5f672a14ea64a8 (patch) | |
tree | ce43da57f52c0bad223d123a37129da918fb5668 /unotools | |
parent | ef877aab7ee88f03b36447af82904fc94938f569 (diff) |
callcatcher: update unused code
Change-Id: Id5f730fc447b11000b266954f9e7f5287bad02f4
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/ucbhelper.hxx | 3 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 28 |
2 files changed, 0 insertions, 31 deletions
diff --git a/unotools/inc/unotools/ucbhelper.hxx b/unotools/inc/unotools/ucbhelper.hxx index 358d8e119c60..13dd45a89db9 100644 --- a/unotools/inc/unotools/ucbhelper.hxx +++ b/unotools/inc/unotools/ucbhelper.hxx @@ -56,9 +56,6 @@ UNOTOOLS_DLLPUBLIC com::sun::star::uno::Any GetProperty( rtl::OUString const & url, rtl::OUString const & property); UNOTOOLS_DLLPUBLIC bool MakeFolder( - rtl::OUString const & url, bool exclusive = false); - -UNOTOOLS_DLLPUBLIC bool MakeFolder( ucbhelper::Content & parent, rtl::OUString const & title, ucbhelper::Content & result, bool exclusive = false); diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index cbb9ee917cb2..3dc4c9352c30 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -244,34 +244,6 @@ bool utl::UCBContentHelper::Kill(rtl::OUString const & url) { } bool utl::UCBContentHelper::MakeFolder( - rtl::OUString const & url, bool exclusive) -{ - INetURLObject o(url); - SAL_WARN_IF(o.HasError(), "unotools", "Invalid URL \"" << url << '"'); - rtl::OUString title( - o.getName( - INetURLObject::LAST_SEGMENT, true, - INetURLObject::DECODE_WITH_CHARSET)); - o.removeSegment(); - ucbhelper::Content parent; - ucbhelper::Content res; - return - ucbhelper::Content::create( - o.GetMainURL(INetURLObject::NO_DECODE), - new ucbhelper::CommandEnvironment( - css::uno::Reference<css::task::XInteractionHandler>( - (css::uno::Reference<css::lang::XMultiServiceFactory>( - comphelper::getProcessServiceFactory(), - css::uno::UNO_SET_THROW)-> - createInstance( - rtl::OUString( "com.sun.star.uui.InteractionHandler"))), - css::uno::UNO_QUERY_THROW), - css::uno::Reference<css::ucb::XProgressHandler>()), - parent) - && MakeFolder(parent, title, res, exclusive); -} - -bool utl::UCBContentHelper::MakeFolder( ucbhelper::Content & parent, rtl::OUString const & title, ucbhelper::Content & result, bool exclusive) { |