mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #212] Removed the unused code to write entries in Zip Headers #904
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/212
State: closed
Merged: Yes
This is more a suggestion than a request.
As I found out with #210 there is some unused code.
The unused code appears because the writing of zip files is done from the
Writers.Zipnamespace, and the reading is done inCommon.Zip.Headers.I guess there could be a consolidation of the two, such that the same classes represents the same entries for both readers and writers. If this is a better approach, much of the code in
ZipWriter.cscan be moved into theCommon.Zip.Headersclasses, but there are edge cases, as the writers need to store some temporary information in the structures (can be solved by a writer-specific class deriving from the other entry perhaps).