summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2012-08-18 18:22:09 +0200
committerPhilipp Riemer <ruderphilipp@gmail.com>2012-08-18 18:33:52 +0200
commit15b3bc8916b1e9968c0d75d2ff74d5a38d54e25b (patch)
tree3b3a3cb3bddc063770d28e6cc265792cb6dc0bf5 /tools
parent42352dff5a8dc4c89fccf399359876aea7dc7d2d (diff)
removed commented out code in tools/source
Change-Id: I4b895b1878626aaa0bbaef7a83408809fa8ccaec
Diffstat (limited to 'tools')
-rw-r--r--tools/source/fsys/dirent.cxx3
-rw-r--r--tools/source/fsys/urlobj.cxx6
-rw-r--r--tools/source/inet/inetmime.cxx25
-rw-r--r--tools/source/stream/stream.cxx2
4 files changed, 0 insertions, 36 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 1774537c9d61..3f5cc76c9fb0 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -73,14 +73,11 @@ int Sys2SolarError_Impl( int nSysErr )
case ERROR_INVALID_HANDLE: return ERRCODE_IO_GENERAL;
case ERROR_NOT_ENOUGH_MEMORY: return ERRCODE_IO_OUTOFMEMORY;
case ERROR_INVALID_BLOCK: return ERRCODE_IO_GENERAL;
-// case ERROR_BAD_ENVIRONMENT: return ERRCODE_IO_;
case ERROR_BAD_FORMAT: return ERRCODE_IO_WRONGFORMAT;
case ERROR_INVALID_ACCESS: return ERRCODE_IO_ACCESSDENIED;
-// case ERROR_INVALID_DATA: return ERRCODE_IO_;
case ERROR_INVALID_DRIVE: return ERRCODE_IO_INVALIDDEVICE;
case ERROR_CURRENT_DIRECTORY: return ERRCODE_IO_CURRENTDIR;
case ERROR_NOT_SAME_DEVICE: return ERRCODE_IO_NOTSAMEDEVICE;
-// case ERROR_NO_MORE_FILES: return ERRCODE_IO_;
case ERROR_WRITE_PROTECT: return ERRCODE_IO_CANTWRITE;
case ERROR_BAD_UNIT: return ERRCODE_IO_INVALIDDEVICE;
case ERROR_NOT_READY: return ERRCODE_IO_DEVICENOTREADY;
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 1e1371608758..3924130476f9 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -1986,7 +1986,6 @@ bool INetURLObject::convertAbsToRel(rtl::OUString const & rTheAbsURIRef,
// path could go into the new relative URL instead, but some people don't
// like that):
rtl::OUStringBuffer aSynRelURIRef;
-// if (nMatch <= 1) nMatch = 0; else // see comment above
for (sal_Unicode const * p = pBasePathBegin + nMatch; p != pBasePathEnd;
++p)
{
@@ -3221,11 +3220,6 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
case INET_PROT_VIM:
{
-/* test had to be taken out to make parsePath static; ok since INET_PROT_VIM is
- obsolete, anyway
- if (m_aUser.isEmpty())
- return false;
-*/
sal_Unicode const * pPathEnd = pPos;
while (pPathEnd < pEnd && *pPathEnd != nFragmentDelimiter)
++pPathEnd;
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 8c4525605047..57a1f85a6981 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -2947,23 +2947,6 @@ rtl::OUString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
bEncodedWord = bEncodedWord && q != pEnd && *q++ == '=';
-// if (bEncodedWord && q != pEnd)
-// switch (*q)
-// {
-// case '\t':
-// case ' ':
-// case '"':
-// case ')':
-// case ',':
-// case '.':
-// case '=':
-// break;
-//
-// default:
-// bEncodedWord = false;
-// break;
-// }
-
sal_Unicode * pUnicodeBuffer = 0;
sal_Size nUnicodeSize = 0;
if (bEncodedWord)
@@ -3061,14 +3044,6 @@ rtl::OUString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
switch (*p++)
{
-// case '\t':
-// case ' ':
-// case ',':
-// case '.':
-// case '=':
-// bStartEncodedWord = true;
-// break;
-
case '"':
if (eType != HEADER_FIELD_TEXT && nCommentLevel == 0)
{
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index dadde7e5c7d3..8673cec6c0fb 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -382,7 +382,6 @@ void SvStream::ImpInit()
nActPos = 0;
nCompressMode = COMPRESSMODE_NONE;
eStreamCharSet = osl_getThreadTextEncoding();
-// eTargetCharSet = osl_getThreadTextEncoding();
nCryptMask = 0;
bIsEof = sal_False;
#if defined UNX
@@ -1192,7 +1191,6 @@ SvStream& SvStream::operator<< ( float v )
SvStream& SvStream::operator<< ( const double& r )
{
-// Write( (char*)&r, sizeof( double ) );
#if defined UNX
if( bSwap )
{