Remove #ifdef DEBUG

This commit is contained in:
dougt%netscape.com 1999-02-26 00:14:57 +00:00
parent 48d25f7404
commit ec7d3e520a
4 changed files with 8 additions and 12 deletions

View File

@ -230,12 +230,12 @@ class NS_BASE nsFileSpec
PRBool Valid() const { return NS_SUCCEEDED(Error()); }
nsresult Error() const { return mError; }
#if DEBUG
friend NS_BASE nsOutputStream& operator << (
nsOutputStream& s,
const nsFileSpec& spec); // THIS IS FOR DEBUGGING ONLY.
// see PersistentFileDescriptor for the real deal.
#endif
//--------------------------------------------------
// Queries and path algebra. These do not modify the disk.

View File

@ -367,14 +367,13 @@ void nsFileURL::operator = (const nsFileSpec& inOther)
#endif
} // nsFileURL::operator =
#if DEBUG
//----------------------------------------------------------------------------------------
nsOutputStream& operator << (nsOutputStream& s, const nsFileURL& url)
//----------------------------------------------------------------------------------------
{
return (s << url.mURL);
}
#endif
//========================================================================================
// nsFilePath implementation
@ -673,7 +672,7 @@ void nsFileSpec::operator = (const char* inString)
}
#endif //XP_UNIX
#if DEBUG
#if (defined(XP_UNIX) || defined(XP_PC))
//----------------------------------------------------------------------------------------
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
@ -682,7 +681,6 @@ nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
return (s << (const char*)spec.mPath);
}
#endif // DEBUG && XP_UNIX
#endif
//----------------------------------------------------------------------------------------
nsFileSpec nsFileSpec::operator + (const char* inRelativePath) const

View File

@ -367,14 +367,13 @@ void nsFileURL::operator = (const nsFileSpec& inOther)
#endif
} // nsFileURL::operator =
#if DEBUG
//----------------------------------------------------------------------------------------
nsOutputStream& operator << (nsOutputStream& s, const nsFileURL& url)
//----------------------------------------------------------------------------------------
{
return (s << url.mURL);
}
#endif
//========================================================================================
// nsFilePath implementation
@ -673,7 +672,7 @@ void nsFileSpec::operator = (const char* inString)
}
#endif //XP_UNIX
#if DEBUG
#if (defined(XP_UNIX) || defined(XP_PC))
//----------------------------------------------------------------------------------------
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
@ -682,7 +681,6 @@ nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
return (s << (const char*)spec.mPath);
}
#endif // DEBUG && XP_UNIX
#endif
//----------------------------------------------------------------------------------------
nsFileSpec nsFileSpec::operator + (const char* inRelativePath) const

View File

@ -230,12 +230,12 @@ class NS_BASE nsFileSpec
PRBool Valid() const { return NS_SUCCEEDED(Error()); }
nsresult Error() const { return mError; }
#if DEBUG
friend NS_BASE nsOutputStream& operator << (
nsOutputStream& s,
const nsFileSpec& spec); // THIS IS FOR DEBUGGING ONLY.
// see PersistentFileDescriptor for the real deal.
#endif
//--------------------------------------------------
// Queries and path algebra. These do not modify the disk.