mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 07:25:11 +00:00
Commented out various unused fields that cause warnings and makes the WarningsAsErrors directive abort the build
This commit is contained in:
@@ -6,12 +6,12 @@ namespace SharpCompress.Archive.Rar
|
||||
{
|
||||
internal class FileInfoRarFilePart : SeekableFilePart
|
||||
{
|
||||
private readonly FileInfoRarArchiveVolume volume;
|
||||
//private readonly FileInfoRarArchiveVolume volume;
|
||||
|
||||
internal FileInfoRarFilePart(FileInfoRarArchiveVolume volume, MarkHeader mh, FileHeader fh, FileInfo fi)
|
||||
: base(mh, fh, volume.Stream, volume.Password)
|
||||
{
|
||||
this.volume = volume;
|
||||
//this.volume = volume;
|
||||
FileInfo = fi;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace SharpCompress.Common.GZip
|
||||
public class GZipVolume : Volume
|
||||
{
|
||||
#if !PORTABLE && !NETFX_CORE
|
||||
private readonly FileInfo fileInfo;
|
||||
//private readonly FileInfo fileInfo;
|
||||
#endif
|
||||
|
||||
public GZipVolume(Stream stream, Options options)
|
||||
@@ -17,7 +17,7 @@ namespace SharpCompress.Common.GZip
|
||||
public GZipVolume(FileInfo fileInfo, Options options)
|
||||
: base(fileInfo.OpenRead(), options)
|
||||
{
|
||||
this.fileInfo = fileInfo;
|
||||
//this.fileInfo = fileInfo;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1198,14 +1198,14 @@ namespace SharpCompress.Common.SevenZip
|
||||
private class FolderUnpackStream : Stream
|
||||
{
|
||||
private ArchiveDatabase _db;
|
||||
private int _otherIndex;
|
||||
//private int _otherIndex;
|
||||
private int _startIndex;
|
||||
private List<bool> _extractStatuses;
|
||||
|
||||
public FolderUnpackStream(ArchiveDatabase db, int p, int startIndex, List<bool> list)
|
||||
{
|
||||
this._db = db;
|
||||
this._otherIndex = p;
|
||||
//this._otherIndex = p;
|
||||
this._startIndex = startIndex;
|
||||
this._extractStatuses = list;
|
||||
}
|
||||
@@ -1275,9 +1275,9 @@ namespace SharpCompress.Common.SevenZip
|
||||
|
||||
private void OpenFile()
|
||||
{
|
||||
bool skip = !_extractStatuses[_currentIndex];
|
||||
//bool skip = !_extractStatuses[_currentIndex];
|
||||
int index = _startIndex + _currentIndex;
|
||||
int realIndex = _otherIndex + index;
|
||||
//int realIndex = _otherIndex + index;
|
||||
//string filename = @"D:\_testdump\" + _db.Files[index].Name;
|
||||
//Directory.CreateDirectory(Path.GetDirectoryName(filename));
|
||||
//_stream = new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.Delete);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace SharpCompress.Common.SevenZip
|
||||
#region Variables
|
||||
|
||||
private byte[] _buffer;
|
||||
private int _origin;
|
||||
//private int _origin;
|
||||
private int _offset;
|
||||
private int _ending;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace SharpCompress.Common.SevenZip
|
||||
public DataReader(byte[] buffer, int offset, int length)
|
||||
{
|
||||
_buffer = buffer;
|
||||
_origin = offset;
|
||||
//_origin = offset;
|
||||
_offset = offset;
|
||||
_ending = offset + length;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace SharpCompress.Compressor.LZMA
|
||||
private RangeDecoder mRangeDecoder;
|
||||
private StatusDecoder[] mStatusDecoder;
|
||||
private long mWritten;
|
||||
private long mLimit;
|
||||
//private long mLimit;
|
||||
private IEnumerator<byte> mIter;
|
||||
private bool mFinished;
|
||||
private bool isDisposed;
|
||||
@@ -112,7 +112,7 @@ namespace SharpCompress.Compressor.LZMA
|
||||
if (streams.Length != 4)
|
||||
throw new NotSupportedException();
|
||||
|
||||
mLimit = limit;
|
||||
//mLimit = limit;
|
||||
mMainStream = streams[0];
|
||||
mCallStream = streams[1];
|
||||
mJumpStream = streams[2];
|
||||
|
||||
Reference in New Issue
Block a user