diff options
author | Marc Garcia <garcia.marc@gmail.com> | 2012-05-04 08:28:20 +0200 |
---|---|---|
committer | Jesús Corrius <jesus@softcatala.org> | 2012-05-04 08:28:20 +0200 |
commit | acbbd79b031889cc138a093813f3b8c2ceb9a3f5 (patch) | |
tree | d942363e6dac9aef4c049ea47fabdfcdc0f95819 /jvmfwk/plugins | |
parent | 19af8cc580445c1e163960d8cfbf793e4e6465bb (diff) |
Remove unused method VendorBase::getJavaExePaths(int*)
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.hxx | 8 | ||||
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx | 16 |
2 files changed, 4 insertions, 20 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.hxx b/jvmfwk/plugins/sunmajor/pluginlib/util.hxx index 891ad63a58bc..31671eb7535b 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.hxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.hxx @@ -39,10 +39,10 @@ namespace jfw_plugin class VendorBase; std::vector<rtl::OUString> getVectorFromCharArray(char const * const * ar, int size); -/* The function uses the relative paths, such as "bin/java.exe" as provided by - VendorBase::getJavaExePaths and the provided path to derive the the home directory. - The home directory is then used as argument to getJREInfoByPath. For example - usBinDir is file:///c:/j2sdk/jre/bin then file:///c:/j2sdk/jre would be derived. +/* The function uses the relative paths, such as "bin/java.exe" and the provided + path to derive the the home directory. The home directory is then used as + argument to getJREInfoByPath. For example usBinDir is + file:///c:/j2sdk/jre/bin then file:///c:/j2sdk/jre would be derived. */ bool getJREInfoFromBinPath( const rtl::OUString& path, std::vector<rtl::Reference<VendorBase> > & vecInfos); diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx index a63bfcf2dc57..60196bffabbc 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx @@ -71,22 +71,6 @@ VendorBase::VendorBase(): m_bAccessibility(false) { } -char const* const * VendorBase::getJavaExePaths(int* size) -{ - static char const * ar[] = { -#if defined(WNT) - "java.exe", - "bin/java.exe" -#elif UNX - "java", - "bin/java" -#endif - }; - *size = sizeof(ar) / sizeof(char*); - return ar; -} - - rtl::Reference<VendorBase> VendorBase::createInstance() { VendorBase *pBase = new VendorBase(); |