Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
scenee committed Aug 18, 2023
1 parent b1edef4 commit eda7201
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Sources/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1132,18 +1132,6 @@ class Core: NSObject, UIGestureRecognizerDelegate {
}
return condition(offset)
}

// MARK: - UIPanGestureRecognizer Intermediation
override func responds(to aSelector: Selector!) -> Bool {
return super.responds(to: aSelector) || panGestureRecognizer.delegateProxy?.responds(to: aSelector) == true
}

override func forwardingTarget(for aSelector: Selector!) -> Any? {
if panGestureRecognizer.delegateProxy?.responds(to: aSelector) == true {
return panGestureRecognizer.delegateProxy
}
return super.forwardingTarget(for: aSelector)
}
}

/// A gesture recognizer that looks for panning (dragging) gestures in a panel.
Expand Down

0 comments on commit eda7201

Please sign in to comment.