mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 15:34:34 +00:00
Refactor ListeningStream
Refactor `ListeningStream`: - Override of `WriteByte` was redundant and removed - Make `Dispose` delegate to base class
This commit is contained in:
@@ -20,6 +20,7 @@ namespace SharpCompress.IO
|
||||
{
|
||||
Stream.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
public Stream Stream { get; }
|
||||
@@ -74,10 +75,5 @@ namespace SharpCompress.IO
|
||||
{
|
||||
Stream.Write(buffer, offset, count);
|
||||
}
|
||||
|
||||
public override void WriteByte(byte value)
|
||||
{
|
||||
Stream.WriteByte(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user