summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-28 08:39:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-30 06:23:00 +0000
commita45827b2308febc7369db27fb489a6d1389534e1 (patch)
tree0b697341738010da35bd0a6a6189ef6761e5db0a /fpicker
parent2387c2a46e15995686d28dccdfd455012072b4cf (diff)
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx22
-rw-r--r--fpicker/source/office/RemoteFilesDialog.hxx3
-rw-r--r--fpicker/source/office/fpsmartcontent.hxx10
3 files changed, 0 insertions, 35 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 8607af606e36..5681efde578a 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -460,10 +460,6 @@ void RemoteFilesDialog::AddFilter( const OUString& rFilter, const OUString& rTyp
m_pFilter_lb->SelectEntryPos( 0 );
}
-OUString RemoteFilesDialog::GetPath() const
-{
- return m_sPath;
-}
FileViewResult RemoteFilesDialog::OpenURL( OUString const & sURL )
{
@@ -1154,25 +1150,7 @@ bool RemoteFilesDialog::ContentIsFolder( const OUString& rURL )
return false;
}
-bool RemoteFilesDialog::ContentIsDocument( const OUString& rURL )
-{
- try
- {
- Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
- Reference< XInteractionHandler > xInteractionHandler(
- InteractionHandler::createWithParent( xContext, 0 ), UNO_QUERY_THROW );
- Reference< XCommandEnvironment > xEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() );
- ::ucbhelper::Content aContent( rURL, xEnv, xContext );
- return aContent.isDocument();
- }
- catch( const Exception& )
- {
- // a content doesn't exist
- }
-
- return false;
-}
sal_Int32 RemoteFilesDialog::getTargetColorDepth()
{
diff --git a/fpicker/source/office/RemoteFilesDialog.hxx b/fpicker/source/office/RemoteFilesDialog.hxx
index 63fbd94ba090..5e458738c2b9 100644
--- a/fpicker/source/office/RemoteFilesDialog.hxx
+++ b/fpicker/source/office/RemoteFilesDialog.hxx
@@ -67,8 +67,6 @@ public:
virtual void Resize() SAL_OVERRIDE;
virtual short Execute() SAL_OVERRIDE;
- OUString GetPath() const;
-
// SvtFileDialog_Base
virtual SvtFileView* GetView() SAL_OVERRIDE;
@@ -82,7 +80,6 @@ public:
virtual const OUString& GetPath() SAL_OVERRIDE;
virtual std::vector<OUString> GetPathList() const SAL_OVERRIDE;
virtual bool ContentIsFolder( const OUString& rURL ) SAL_OVERRIDE;
- virtual bool ContentIsDocument( const OUString& rURL );
virtual OUString getCurrentFileText() const SAL_OVERRIDE;
virtual void setCurrentFileText( const OUString& rText, bool bSelectAll = false ) SAL_OVERRIDE;
diff --git a/fpicker/source/office/fpsmartcontent.hxx b/fpicker/source/office/fpsmartcontent.hxx
index b6ffd7281848..0e6f0b5fc1d6 100644
--- a/fpicker/source/office/fpsmartcontent.hxx
+++ b/fpicker/source/office/fpsmartcontent.hxx
@@ -180,16 +180,6 @@ namespace svt
return implIs( _rURL, Folder );
}
- /** binds to the given URL, checks whether or not it refers to a document
-
- @postcond
- the content is not in the state UNKNOWN
- */
- inline bool isDocument( const OUString& _rURL )
- {
- return implIs( _rURL, Document );
- }
-
/** checks if the content is existent (it is if and only if it is a document or a folder)
*/
inline bool is( const OUString& _rURL )