From 04c83201f2f3c075667640e26514dc1ba3f17476 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 6 Jun 2008 07:38:40 +0000 Subject: INTEGRATION: CWS jl101 (1.29.12); FILE MERGED 2008/05/28 14:55:52 jl 1.29.12.1: #i89584# patch - remove unused code. --- jvmfwk/source/fwkutil.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'jvmfwk/source/fwkutil.cxx') 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); -- cgit