Skip to content

Commit

Permalink
Clean up old hashable implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed Jul 3, 2019
1 parent 72a3f89 commit 099a868
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
16 changes: 0 additions & 16 deletions Sources/RswiftCore/ResourceTypes/Locale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,3 @@ extension Locale: Hashable {
}
}
}

func == (lhs: Locale, rhs: Locale) -> Bool {
switch (lhs, rhs) {
case (.none, .none):
return true

case (.base, .base):
return true

case let (.language(lLang), .language(rLang)):
return lLang == rLang

default:
return false
}
}
4 changes: 0 additions & 4 deletions Sources/RswiftCore/ResourceTypes/ReusableContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ struct Reusable: Hashable {
let type: Type
}

func == (lhs: Reusable, rhs: Reusable) -> Bool {
return lhs.hashValue == rhs.hashValue
}

protocol ReusableContainer {
var reusables: [Reusable] { get }
}
2 changes: 1 addition & 1 deletion Sources/RswiftCore/SwiftTypes/Type.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ struct Type: UsedTypesProvider, CustomStringConvertible, Hashable {
}

func ==(lhs: Type, rhs: Type) -> Bool {
return (lhs.hashValue == rhs.hashValue)
return (lhs.description == rhs.description)
}
4 changes: 0 additions & 4 deletions Sources/RswiftCore/Util/SwiftIdentifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ struct SwiftIdentifier : CustomStringConvertible, Hashable {
}
}

func ==(lhs: SwiftIdentifier, rhs: SwiftIdentifier) -> Bool {
return lhs.description == rhs.description
}

extension SwiftIdentifier : ExpressibleByStringLiteral {
typealias StringLiteralType = String
typealias UnicodeScalarLiteralType = String
Expand Down

0 comments on commit 099a868

Please sign in to comment.