mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Remove unused property ZipLocalHeader.headerSize
This commit is contained in:
@@ -29,8 +29,6 @@ struct ZipLocalHeader {
|
||||
private(set) var ntfsAtime: UInt64?
|
||||
private(set) var ntfsCtime: UInt64?
|
||||
|
||||
let headerSize: Int
|
||||
|
||||
init(_ pointerData: DataWithPointer) throws {
|
||||
// Check signature.
|
||||
guard pointerData.uint32() == 0x04034b50
|
||||
@@ -53,7 +51,6 @@ struct ZipLocalHeader {
|
||||
|
||||
let fileNameLength = pointerData.uint16().toInt()
|
||||
let extraFieldLength = pointerData.uint16().toInt()
|
||||
self.headerSize = 30 + fileNameLength + extraFieldLength
|
||||
|
||||
guard let fileName = ZipCommon.getStringField(pointerData, fileNameLength, useUtf8)
|
||||
else { throw ZipError.wrongTextField }
|
||||
|
||||
Reference in New Issue
Block a user