Merge pull request #123 from kenkendk/remove_warnings

Fix various warnings
This commit is contained in:
Adam Hathcock
2016-01-26 09:21:03 +00:00
5 changed files with 0 additions and 19 deletions

View File

@@ -6,12 +6,9 @@ namespace SharpCompress.Archive.Rar
{
internal class FileInfoRarFilePart : SeekableFilePart
{
private readonly FileInfoRarArchiveVolume volume;
internal FileInfoRarFilePart(FileInfoRarArchiveVolume volume, MarkHeader mh, FileHeader fh, FileInfo fi)
: base(mh, fh, volume.Stream, volume.Password)
{
this.volume = volume;
FileInfo = fi;
}

View File

@@ -4,10 +4,6 @@ namespace SharpCompress.Common.GZip
{
public class GZipVolume : Volume
{
#if !PORTABLE && !NETFX_CORE
private readonly FileInfo fileInfo;
#endif
public GZipVolume(Stream stream, Options options)
: base(stream, options)
{
@@ -17,7 +13,6 @@ namespace SharpCompress.Common.GZip
public GZipVolume(FileInfo fileInfo, Options options)
: base(fileInfo.OpenRead(), options)
{
this.fileInfo = fileInfo;
}
#endif

View File

@@ -1198,14 +1198,12 @@ namespace SharpCompress.Common.SevenZip
private class FolderUnpackStream : Stream
{
private ArchiveDatabase _db;
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._startIndex = startIndex;
this._extractStatuses = list;
}
@@ -1275,12 +1273,7 @@ namespace SharpCompress.Common.SevenZip
private void OpenFile()
{
bool skip = !_extractStatuses[_currentIndex];
int index = _startIndex + _currentIndex;
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);
#if DEBUG
Log.WriteLine(_db.Files[index].Name);
#endif

View File

@@ -34,7 +34,6 @@ namespace SharpCompress.Common.SevenZip
#region Variables
private byte[] _buffer;
private int _origin;
private int _offset;
private int _ending;
@@ -45,7 +44,6 @@ namespace SharpCompress.Common.SevenZip
public DataReader(byte[] buffer, int offset, int length)
{
_buffer = buffer;
_origin = offset;
_offset = offset;
_ending = offset + length;
}

View File

@@ -99,7 +99,6 @@ namespace SharpCompress.Compressor.LZMA
private RangeDecoder mRangeDecoder;
private StatusDecoder[] mStatusDecoder;
private long mWritten;
private long mLimit;
private IEnumerator<byte> mIter;
private bool mFinished;
private bool isDisposed;
@@ -112,7 +111,6 @@ namespace SharpCompress.Compressor.LZMA
if (streams.Length != 4)
throw new NotSupportedException();
mLimit = limit;
mMainStream = streams[0];
mCallStream = streams[1];
mJumpStream = streams[2];