From 346268fa1ddbdccbdb3e91faada047d493ff5c25 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 25 Dec 2016 22:06:53 +0300 Subject: [PATCH] Gzip.ServiceInfo is now longer equatable. --- Sources/GzipArchive.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Sources/GzipArchive.swift b/Sources/GzipArchive.swift index 4e9ffdd7..67aa3a9d 100644 --- a/Sources/GzipArchive.swift +++ b/Sources/GzipArchive.swift @@ -105,8 +105,7 @@ public final class GzipArchive: Archive { static let fcomment: UInt8 = 0x10 } - struct ServiceInfo: Equatable { - + struct ServiceInfo { let magic: Int let method: UInt8 let flags: UInt8 @@ -117,13 +116,6 @@ public final class GzipArchive: Archive { var fileName: String var comment: String var crc: Int - - public static func ==(lhs: ServiceInfo, rhs: ServiceInfo) -> Bool { - return lhs.magic == rhs.magic && lhs.method == rhs.method && - lhs.flags == rhs.flags && lhs.mtime == rhs.mtime && lhs.extraFlags == rhs.extraFlags && - lhs.osType == rhs.osType && lhs.fileName == rhs.fileName && - lhs.comment == rhs.comment && lhs.crc == rhs.crc - } } static func serviceInfo(archiveData: Data) throws -> ServiceInfo {