[SabreTools, DatFile, DatHeader] StripHash no longer needed

This commit is contained in:
Matt Nadareski
2018-03-22 17:00:45 -07:00
parent 5449ae6015
commit fe37c4f27e
4 changed files with 5 additions and 111 deletions

View File

@@ -884,7 +884,7 @@ namespace SabreTools
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all MD5 hashes from the output file(s).");
}
}
} // TODO: Remove
private static Feature _removeSha1Flag
{
get
@@ -896,7 +896,7 @@ namespace SabreTools
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-1 hashes from the output file(s).");
}
}
} // TODO: Remove
private static Feature _removeSha256Flag
{
get
@@ -908,7 +908,7 @@ namespace SabreTools
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-256 hashes from the output file(s).");
}
}
} // TODO: Remove
private static Feature _removeSha384Flag
{
get
@@ -920,7 +920,7 @@ namespace SabreTools
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-384 hashes from the output file(s).");
}
}
} // TODO: Remove
private static Feature _removeSha512Flag
{
get
@@ -932,7 +932,7 @@ namespace SabreTools
FeatureType.Flag,
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-512 hashes from the output file(s).");
}
}
} // TODO: Remove
private static Feature _removeUnicodeFlag
{
get

View File

@@ -454,23 +454,18 @@ namespace SabreTools
datHeader.RemoveExtension = true;
break;
case "remove-md5":
datHeader.StripHash |= Hash.MD5;
datHeader.ExcludeFields[(int)Field.MD5] = true;
break;
case "remove-sha1":
datHeader.StripHash |= Hash.SHA1;
datHeader.ExcludeFields[(int)Field.SHA1] = true;
break;
case "remove-sha256":
datHeader.StripHash |= Hash.SHA256;
datHeader.ExcludeFields[(int)Field.SHA256] = true;
break;
case "remove-sha384":
datHeader.StripHash |= Hash.SHA384;
datHeader.ExcludeFields[(int)Field.SHA384] = true;
break;
case "remove-sha512":
datHeader.StripHash |= Hash.SHA512;
datHeader.ExcludeFields[(int)Field.SHA512] = true;
break;
case "remove-unicode":