diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-03-04 01:41:18 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-03-04 01:41:18 +0900 |
commit | b406c51330ebea0459f38b0073f0783410b072f3 (patch) | |
tree | 0151cd0394bec094ddfd3cfb32ff20ab574c3b0e /jvmfwk/plugins | |
parent | 70baa487d910d8df45200bcdfda9feee1148402c (diff) |
removed dead code; fix a comment
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r-- | jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx | 1 | ||||
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx | 2 | ||||
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 5 | ||||
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx | 9 |
4 files changed, 1 insertions, 16 deletions
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index 395f386d1939..8e8bfb94ea32 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -47,7 +47,6 @@ using ::rtl::OString; static sal_Bool hasOption(char const * szOption, int argc, char** argv); static rtl::OString getLD_LIBRARY_PATH(const rtl::ByteSequence & vendorData); static bool findAndSelect(JavaInfo**); -//static sal_Bool printPaths(const OUString& sPathFile); #define HELP_TEXT \ "\njavaldx is necessary to make Java work on some UNIX platforms." \ diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx index 5bc76c26f421..bb3e1765a030 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx @@ -128,7 +128,7 @@ bool SunVersion::init(const char *szVersion) //check next character if (! ( (pCur < pEnd) - && ( (nPart < 3) && isdigit(*pCur)))) //(*pCur >= 48 && *pCur <=57)))) + && ( (nPart < 3) && isdigit(*pCur)))) return false; } else diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx index e208d43bb400..b34d486a4b2e 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx @@ -157,7 +157,6 @@ namespace { OUString const & operator()() { - // osl::Guard<osl::Mutex> g(osl::GetGlobalMutex()); static OUString sIni; rtl::OUStringBuffer buf( 255); buf.append( getLibraryLocation()); @@ -456,8 +455,6 @@ bool getJavaProps(const OUString & exePath, rs = stdoutReader.readLine( & aLine); if (rs != FileHandleReader::RESULT_OK) break; -// JFW_TRACE2(OString("[Java framework] line:\" ") -// + aLine + OString(" \".\n")); OUString sLine; if (!decodeOutput(aLine, &sLine)) continue; @@ -515,7 +512,6 @@ bool decodeOutput(const rtl::OString& s, rtl::OUString* out) } while (nIndex >= 0); *out = buff.makeStringAndClear(); -// JFW_TRACE2(*out); return true; } @@ -559,7 +555,6 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey, DWORD dwIndex = 0; const DWORD BUFFSIZE = 1024; wchar_t bufVersion[BUFFSIZE]; -// char bufVersion[BUFFSIZE]; DWORD nNameLen = BUFFSIZE; FILETIME fileTime; nNameLen = sizeof(bufVersion); diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx index f1987ef42961..7edc5fa00735 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.hxx @@ -35,18 +35,9 @@ namespace jfw_plugin { -//extern VendorSupportMapEntry gVendorMap[]; - typedef char const * const * (* getJavaExePaths_func)(int*); typedef rtl::Reference<VendorBase> (* createInstance_func) (); -// struct Blas -// { -// char const * sVendorName; -// getJavaExePaths_func getJavaFunc; -// createInstance_func createFunc; -// }; - struct VendorSupportMapEntry { char const * sVendorName; |