Preemptive FileTypes cleanup

This commit is contained in:
Matt Nadareski
2025-01-04 20:24:56 -05:00
parent f5e2d8a11c
commit c449f34410
11 changed files with 29 additions and 119 deletions

View File

@@ -60,11 +60,8 @@ namespace SabreTools.FileTypes.Archives
/// <summary>
/// Create a new TorrentGZipArchive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public GZipArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public GZipArchive(string filename)
: base(filename)
{
}

View File

@@ -31,10 +31,8 @@ namespace SabreTools.FileTypes.Archives
/// Create a new TorrentRARArchive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public RarArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public RarArchive(string filename)
: base(filename)
{
}

View File

@@ -38,9 +38,8 @@ namespace SabreTools.FileTypes.Archives
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public SevenZipArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public SevenZipArchive(string filename)
: base(filename)
{
}

View File

@@ -36,10 +36,8 @@ namespace SabreTools.FileTypes.Archives
/// Create a new Tape archive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public TapeArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public TapeArchive(string filename)
: base(filename)
{
}

View File

@@ -46,10 +46,8 @@ namespace SabreTools.FileTypes.Archives
/// Create a new TorrentGZipArchive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public XZArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public XZArchive(string filename)
: base(filename)
{
}

View File

@@ -44,10 +44,8 @@ namespace SabreTools.FileTypes.Archives
/// Create a new TorrentZipArchive from the given file
/// </summary>
/// <param name="filename">Name of the file to use as an archive</param>
/// <param name="read">True for opening file as read, false for opening file as write</param>
/// <param name="getHashes">True if hashes for this file should be calculated, false otherwise (default)</param>
public ZipArchive(string filename, bool getHashes = false)
: base(filename, getHashes)
public ZipArchive(string filename)
: base(filename)
{
}