summaryrefslogtreecommitdiff
path: root/jvmfwk/source/fwkutil.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-05-06 23:45:55 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-05-07 15:56:06 +0200
commit6ba74150866d71469827de9f4f19268dfa7db137 (patch)
tree0c24ca4b2a5a45afd024b14837f80232dfcd76bb /jvmfwk/source/fwkutil.cxx
parent58c87f8261abf4f1528a43dc501e956cb9c1d2f2 (diff)
jfw::isAccessibilitySupportDesired is obsolete
There's no platform left that would require java accessibility. Change-Id: I2149f619e20aae70d7713d223985f8016ade8e77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93600 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'jvmfwk/source/fwkutil.cxx')
-rw-r--r--jvmfwk/source/fwkutil.cxx48
1 files changed, 0 insertions, 48 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx
index fad1268feee1..a3be17ea1d48 100644
--- a/jvmfwk/source/fwkutil.cxx
+++ b/jvmfwk/source/fwkutil.cxx
@@ -41,54 +41,6 @@ using namespace osl;
namespace jfw
{
-bool isAccessibilitySupportDesired()
-{
-#ifdef _WIN32
- bool retVal = false;
- HKEY hKey = nullptr;
- if (RegOpenKeyExA(HKEY_CURRENT_USER,
- "Software\\LibreOffice\\Accessibility\\AtToolSupport",
- 0, KEY_READ, &hKey) == ERROR_SUCCESS)
- {
- DWORD dwType = 0;
- DWORD dwLen = 16;
- unsigned char arData[16];
- if( RegQueryValueExA(hKey, "SupportAssistiveTechnology", nullptr, &dwType, arData,
- &dwLen)== ERROR_SUCCESS)
- {
- if (dwType == REG_SZ)
- {
- arData[std::min(dwLen, DWORD(15))] = 0;
- if (strcmp(reinterpret_cast<char*>(arData), "true") == 0
- || strcmp(reinterpret_cast<char*>(arData), "1") == 0)
- retVal = true;
- else if (strcmp(reinterpret_cast<char*>(arData), "false") == 0
- || strcmp(reinterpret_cast<char*>(arData), "0") == 0)
- retVal = false;
- else
- SAL_WARN("jfw", "bad registry value " << arData);
- }
- else if (dwType == REG_DWORD)
- {
- if (arData[0] == 1)
- retVal = true;
- else if (arData[0] == 0)
- retVal = false;
- else
- SAL_WARN(
- "jfw", "bad registry value " << unsigned(arData[0]));
- }
- }
- RegCloseKey(hKey);
- }
-#elif defined UNX
- // Java is no longer required for a11y - we use atk directly.
- bool retVal = false;
-#endif
-
- return retVal;
-}
-
rtl::ByteSequence encodeBase16(const rtl::ByteSequence& rawData)
{
static const char EncodingTable[] =