From 6d8b06224cf1819c8af543927d7a80e937c50a94 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 8 Dec 2014 09:16:06 +0000 Subject: callcatcher: update unused code Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d --- jvmfwk/source/fwkutil.cxx | 12 ------------ jvmfwk/source/fwkutil.hxx | 4 ---- 2 files changed, 16 deletions(-) (limited to 'jvmfwk/source') diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx index b6a6eef63756..fc8feb37da31 100644 --- a/jvmfwk/source/fwkutil.cxx +++ b/jvmfwk/source/fwkutil.cxx @@ -183,18 +183,6 @@ OUString getDirFromFile(const OUString& usFilePath) return OUString(usFilePath.getStr(), index); } -OUString getExecutableDirectory() -{ - rtl_uString* sExe = NULL; - if (osl_getExecutableFile( & sExe) != osl_Process_E_None) - throw FrameworkException( - JFW_E_ERROR, - "[Java framework] Error in function getExecutableDirectory (fwkutil.cxx)"); - - OUString ouExe(sExe, SAL_NO_ACQUIRE); - return getDirFromFile(ouExe); -} - OUString getLibraryLocation() { OString sExcMsg("[Java framework] Error in function getLibraryLocation " diff --git a/jvmfwk/source/fwkutil.hxx b/jvmfwk/source/fwkutil.hxx index af157d00ec06..6168d35c40b7 100644 --- a/jvmfwk/source/fwkutil.hxx +++ b/jvmfwk/source/fwkutil.hxx @@ -76,10 +76,6 @@ OUString getPlatform(); OUString getDirFromFile(const OUString& usFilePath); -/** Returns the file URL of the folder where the executable resides. - */ -OUString getExecutableDirectory(); - enum FileStatus { FILE_OK, -- cgit