diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-10-08 20:02:03 -0300 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-10-17 09:32:47 +0200 |
commit | 625e91c75fe66d4e067213a561f19e626cfbfa93 (patch) | |
tree | 71c7501def89baf911d52e823bb5a8f42d34a668 /sal | |
parent | Translate German comments to English (diff) | |
download | core-625e91c75fe66d4e067213a561f19e626cfbfa93.tar.gz core-625e91c75fe66d4e067213a561f19e626cfbfa93.zip |
More useless code, "#if 0" blocks in lingucomponent, sal, and rsc
Change-Id: I1dda0f2b3bc2bb4a4a877c160026e53a90471d54
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/security.c | 31 | ||||
-rw-r--r-- | sal/rtl/source/strimp.hxx | 14 |
2 files changed, 0 insertions, 45 deletions
diff --git a/sal/osl/w32/security.c b/sal/osl/w32/security.c index 82fd8335e4c4..a05614b65e90 100644 --- a/sal/osl/w32/security.c +++ b/sal/osl/w32/security.c @@ -464,37 +464,6 @@ sal_Bool SAL_CALL osl_getHomeDir(oslSecurity Security, rtl_uString **pustrDirect } else { -#if 0 - if (pSecImpl->m_hToken) - { - DWORD nInfoBuffer = 512; - UCHAR* pInfoBuffer = malloc(nInfoBuffer); - - while (!GetTokenInformation(pSecImpl->m_hToken, TokenUser, - pInfoBuffer, nInfoBuffer, &nInfoBuffer)) - { - if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) - pInfoBuffer = realloc(pInfoBuffer, nInfoBuffer); - else - { - free(pInfoBuffer); - pInfoBuffer = NULL; - break; - } - } - - /* not implemented */ - OSL_ASSERT(sal_False); - - if (pInfoBuffer) - { - /* if (EqualSid() ... */ - - } - } - else -#endif - bSuccess = (sal_Bool)(GetSpecialFolder(&ustrSysDir, CSIDL_PERSONAL) && (osl_File_E_None == osl_getFileURLFromSystemPath(ustrSysDir, pustrDirectory))); } diff --git a/sal/rtl/source/strimp.hxx b/sal/rtl/source/strimp.hxx index 82f7f41fee74..6face213a031 100644 --- a/sal/rtl/source/strimp.hxx +++ b/sal/rtl/source/strimp.hxx @@ -55,22 +55,8 @@ sal_Int16 rtl_ImplGetDigit( sal_Unicode ch, sal_Int16 nRadix ); sal_Bool rtl_ImplIsWhitespace( sal_Unicode c ); // string lifetime instrumentation / diagnostics -#if 0 -# include <rtl/ustring.hxx> -# define RTL_LOG_STRING_NEW(s) \ - do { \ - fprintf (stderr, "+%s\n", \ - rtl::OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()); \ - } while (0) -# define RTL_LOG_STRING_DELETE(s) \ - do { \ - fprintf (stderr, "-%s\n", \ - rtl::OUStringToOString(s, RTL_TEXTENCODING_UTF8).getStr()); \ - } while (0) -#else # define RTL_LOG_STRING_NEW(s) # define RTL_LOG_STRING_DELETE(s) -#endif #endif /* INCLUDED_RTL_SOURCE_STRIMP_HXX */ |