Skip to content

Commit

Permalink
Remove unused Dictionary defaultable subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
cysp committed Jan 27, 2019
1 parent f095ec2 commit c6c1a6e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Sources/Apollo/Collections.swift
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
extension Dictionary {
subscript(key: Key, withDefault value: @autoclosure () -> Value) -> Value {
mutating get {
if self[key] == nil {
self[key] = value()
}
return self[key]!
}
set {
self[key] = newValue
}
}
}

public extension Dictionary {
static func += (lhs: inout Dictionary, rhs: Dictionary) {
#if swift(>=3.2)
Expand Down

0 comments on commit c6c1a6e

Please sign in to comment.