From 19c0ecaedfcb9c67f916bc14e528a5f78298562a Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Fri, 10 Nov 2017 15:02:05 -0800 Subject: [PATCH] [Swift] Remove Triple.swift. This is not in use. It never has been, as far as I can see. --- .../Swift/Sources/Antlr4/misc/Triple.swift | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 runtime/Swift/Sources/Antlr4/misc/Triple.swift diff --git a/runtime/Swift/Sources/Antlr4/misc/Triple.swift b/runtime/Swift/Sources/Antlr4/misc/Triple.swift deleted file mode 100644 index a05366038..000000000 --- a/runtime/Swift/Sources/Antlr4/misc/Triple.swift +++ /dev/null @@ -1,38 +0,0 @@ -/// -/// Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. -/// Use of this file is governed by the BSD 3-clause license that -/// can be found in the LICENSE.txt file in the project root. -/// - - -public class Triple: Hashable, CustomStringConvertible { - public let a: A - public let b: B - public let c: C - - public init(_ a: A, _ b: B, _ c: C) { - self.a = a - self.b = b - self.c = c - } - public var hashValue: Int { - var hash = MurmurHash.initialize() - hash = MurmurHash.update(hash, a) - hash = MurmurHash.update(hash, b) - hash = MurmurHash.update(hash, c) - return MurmurHash.finish(hash, 3) - } - - - public var description: String { - return "\(a),\(b),(c)" - } -} - -public func ==(lhs: Triple, rhs: Triple) -> Bool { - if lhs === rhs { - return true - } - // return false - return lhs.a == rhs.a && lhs.b == rhs.b && lhs.c == rhs.c -}