Author: alanmc
Date: 2006-12-04 09:05:57 -0500 (Mon, 04 Dec 2006)
New Revision: 68947
Removed:
trunk/bitsharp/src/MonoTorrent.Common/TorrentReader.cs
Modified:
trunk/bitsharp/src/MonoTorrent.Common/Makefile
trunk/bitsharp/src/MonoTorrent.Common/MonoTorrent.Common.csproj
Log:
TorrentReader isn't being used, therefore i'm dumping it.
Modified: trunk/bitsharp/src/MonoTorrent.Common/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/Makefile 2006-12-04 14:01:00 UTC
(rev 68946)
+++ trunk/bitsharp/src/MonoTorrent.Common/Makefile 2006-12-04 14:05:57 UTC
(rev 68947)
@@ -15,7 +15,6 @@
Torrent.cs \
TorrentFile.cs \
TorrentException.cs \
- TorrentReader.cs \
VersionInfo.cs \
# Test/BEncodingTest.cs \
# Test/CatStreamReaderTest.cs \
Modified: trunk/bitsharp/src/MonoTorrent.Common/MonoTorrent.Common.csproj
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/MonoTorrent.Common.csproj
2006-12-04 14:01:00 UTC (rev 68946)
+++ trunk/bitsharp/src/MonoTorrent.Common/MonoTorrent.Common.csproj
2006-12-04 14:05:57 UTC (rev 68947)
@@ -65,7 +65,6 @@
<Compile Include="Torrent.cs" />
<Compile Include="TorrentException.cs" />
<Compile Include="TorrentFile.cs" />
- <Compile Include="TorrentReader.cs" />
<Compile Include="VersionInfo.cs" />
<Compile Include="TorrentCreator.cs" />
</ItemGroup>
Deleted: trunk/bitsharp/src/MonoTorrent.Common/TorrentReader.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/TorrentReader.cs 2006-12-04
14:01:00 UTC (rev 68946)
+++ trunk/bitsharp/src/MonoTorrent.Common/TorrentReader.cs 2006-12-04
14:05:57 UTC (rev 68947)
@@ -1,105 +0,0 @@
-//
-// TorrentReader.cs
-//
-// Authors:
-// Gregor Burger [EMAIL PROTECTED]
-//
-// Copyright (C) 2006 Gregor Burger
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-
-
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Text;
-
-namespace MonoTorrent.Common
-{
- /// <summary>
- ///
- /// </summary>
- public class TorrentReader : IDisposable
- {
- private FileStream stream;
-
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="path"></param>
- /// <param name="mode"></param>
- /// <param name="access"></param>
- /// <param name="share"></param>
- public TorrentReader(string path, FileMode mode, FileAccess access,
FileShare share)
- {
- this.stream = new FileStream(path, mode, access, share);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public int PeekChar()
- {
- if (stream.Position == (stream.Length-1))
- return -1;
-
- int result = stream.ReadByte();
- stream.Seek(-1, SeekOrigin.Current);
- return result;
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public int ReadByte()
- {
- return stream.ReadByte();
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="array"></param>
- /// <param name="offset"></param>
- /// <param name="count"></param>
- /// <returns></returns>
- public int Read(byte[] array, int offset, int count)
- {
- return this.stream.Read(array, offset, count);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- public void Dispose()
- {
- this.stream.Dispose();
- }
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches