From df7bd3c2a3b9108ab40a9346e17c4a685705211f Mon Sep 17 00:00:00 2001 From: Matt Rubin Date: Fri, 12 Apr 2019 16:08:18 -0400 Subject: [PATCH] Synthesize Equatable conformance for Signature --- .swiftlint.yml | 1 + SwiftGit2/Objects.swift | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index d375fd9..9644dd1 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -52,6 +52,7 @@ opt_in_rules: - redundant_nil_coalescing - redundant_type_annotation - sorted_first_last + - static_operator - strict_fileprivate - switch_case_on_newline - toggle_bool diff --git a/SwiftGit2/Objects.swift b/SwiftGit2/Objects.swift index b870651..0157045 100644 --- a/SwiftGit2/Objects.swift +++ b/SwiftGit2/Objects.swift @@ -83,13 +83,6 @@ extension Signature: Hashable { } } -public func == (lhs: Signature, rhs: Signature) -> Bool { - return lhs.name == rhs.name - && lhs.email == rhs.email - && lhs.time == rhs.time - && lhs.timeZone == rhs.timeZone -} - /// A git commit. public struct Commit: ObjectType, Hashable { public static let type = GIT_OBJ_COMMIT