[Box Backup-dev] COMMIT r616 - box/chris/general/lib/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Mon, 5 Jun 2006 13:04:46 +0000 (GMT)


Author: chris
Date: 2006-06-05 13:04:37 +0000 (Mon, 05 Jun 2006)
New Revision: 616

Modified:
   box/chris/general/lib/common/FileStream.cpp
   box/chris/general/lib/common/FileStream.h
Log:
* FileStream.cpp, FileStream.h
- Removed unused constructors for FileStream objects, that might cause
  problems on Win32 if they were used


Modified: box/chris/general/lib/common/FileStream.cpp
===================================================================
--- box/chris/general/lib/common/FileStream.cpp	2006-06-05 13:03:59 UTC (rev 615)
+++ box/chris/general/lib/common/FileStream.cpp	2006-06-05 13:04:37 UTC (rev 616)
@@ -43,50 +43,9 @@
 #endif
 }
 
-
 // --------------------------------------------------------------------------
 //
 // Function
-//		Name:    FileStream::FileStream(int)
-//		Purpose: Constructor, using existing file descriptor
-//		Created: 2003/08/28
-//
-// --------------------------------------------------------------------------
-FileStream::FileStream(tOSFileHandle FileDescriptor)
-	: mOSFileHandle(FileDescriptor),
-	  mIsEOF(false)
-{
-	if(mOSFileHandle < 0)
-	{
-		MEMLEAKFINDER_NOT_A_LEAK(this);
-		THROW_EXCEPTION(CommonException, OSFileOpenError)
-	}
-}
-
-#if 0
-// --------------------------------------------------------------------------
-//
-// Function
-//		Name:    FileStream::FileStream(const FileStream &)
-//		Purpose: Copy constructor, creates a duplicate of the file handle
-//		Created: 2003/07/31
-//
-// --------------------------------------------------------------------------
-FileStream::FileStream(const FileStream &rToCopy)
-	: mOSFileHandle(::dup(rToCopy.mOSFileHandle)),
-	  mIsEOF(rToCopy.mIsEOF)
-{
-	if(mOSFileHandle < 0)
-	{
-		MEMLEAKFINDER_NOT_A_LEAK(this);
-		THROW_EXCEPTION(CommonException, OSFileOpenError)
-	}
-}
-#endif // 0
-
-// --------------------------------------------------------------------------
-//
-// Function
 //		Name:    FileStream::~FileStream()
 //		Purpose: Destructor, closes file
 //		Created: 2003/07/31

Modified: box/chris/general/lib/common/FileStream.h
===================================================================
--- box/chris/general/lib/common/FileStream.h	2006-06-05 13:03:59 UTC (rev 615)
+++ box/chris/general/lib/common/FileStream.h	2006-06-05 13:04:37 UTC (rev 616)
@@ -38,7 +38,6 @@
 		int flags = O_RDONLY,
 #endif
 		int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH));
-	FileStream(tOSFileHandle FileDescriptor);
 	
 	virtual ~FileStream();