summaryrefslogtreecommitdiff
path: root/jvmfwk/source/fwkutil.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-06 07:38:40 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-06 07:38:40 +0000
commit04c83201f2f3c075667640e26514dc1ba3f17476 (patch)
tree5ce4a474b1c5b0024774082dda590891399e449c /jvmfwk/source/fwkutil.cxx
parent3ffc78342116049fa57b9e86808b445c7071861a (diff)
INTEGRATION: CWS jl101 (1.29.12); FILE MERGED
2008/05/28 14:55:52 jl 1.29.12.1: #i89584# patch - remove unused code.
Diffstat (limited to 'jvmfwk/source/fwkutil.cxx')
-rw-r--r--jvmfwk/source/fwkutil.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx
index 248673ff2750..f50a2a91afb5 100644
--- a/jvmfwk/source/fwkutil.cxx
+++ b/jvmfwk/source/fwkutil.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fwkutil.cxx,v $
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
* This file is part of OpenOffice.org.
*
@@ -203,21 +203,13 @@ rtl::OUString getDirFromFile(const rtl::OUString& usFilePath)
return rtl::OUString(usFilePath.getStr(), index);
}
-rtl::OUString getFileFromURL(const rtl::OUString& sFileURL)
-{
- sal_Int32 index= sFileURL.lastIndexOf('/');
- if (index == -1)
- return sFileURL;
- return sFileURL.copy(index + 1);
-}
-
rtl::OUString getExecutableDirectory()
{
rtl_uString* sExe = NULL;
if (osl_getExecutableFile( & sExe) != osl_Process_E_None)
throw FrameworkException(
JFW_E_ERROR,
- "[Java framework] Error in function getApplicationBase (fwkutil.cxx)");
+ "[Java framework] Error in function getExecutableDirectory (fwkutil.cxx)");
rtl::OUString ouExe(sExe, SAL_NO_ACQUIRE);
return getDirFromFile(ouExe);