Skip to content

Commit

Permalink
Remove unnecessary Lock protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
roberthein committed Feb 21, 2020
1 parent dfbfa39 commit e9ee3e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions Observable/Classes/Lock.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Observable/Classes/Observable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Observable<T> {
private var observers: [Int: (Observer, DispatchQueue?)] = [:]
private var uniqueID = (0...).makeIterator()

fileprivate let lock: Lock = NSRecursiveLock()
fileprivate let lock = NSRecursiveLock()

fileprivate var _value: T {
didSet {
Expand Down

0 comments on commit e9ee3e5

Please sign in to comment.