Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tamanyan committed Nov 1, 2017
1 parent f91c216 commit a6f508c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion PageMenuExample/Sources/ChildViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ class ChildViewController: UIViewController, UITableViewDataSource, UITableViewD
tableView.deselectRow(at: indexPath, animated: true)
}
}

10 changes: 0 additions & 10 deletions PageMenuExample/Sources/PageTabMenuViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ extension PageTabMenuViewController: PageMenuControllerDelegate {
func pageMenuController(_ pageMenuController: PageMenuController, didScrollToPageAtIndex index: Int, direction: PageMenuNavigationDirection) {
// The page view controller will begin scrolling to a new page.
print("didScrollToPageAtIndex index:\(index)")
self.viewControllers.forEach {
if let vc = $0 as? ChildViewController {
vc.tableView.isScrollEnabled = true
}
}
}

func pageMenuController(_ pageMenuController: PageMenuController, willScrollToPageAtIndex index: Int, direction: PageMenuNavigationDirection) {
Expand All @@ -78,11 +73,6 @@ extension PageTabMenuViewController: PageMenuControllerDelegate {
func pageMenuController(_ pageMenuController: PageMenuController, scrollingProgress progress: CGFloat, direction: PageMenuNavigationDirection) {
// The page view controller did complete scroll to a new page.
print("scrollingProgress progress: \(progress)")
self.viewControllers.forEach {
if let vc = $0 as? ChildViewController {
vc.tableView.isScrollEnabled = false
}
}
}

func pageMenuController(_ pageMenuController: PageMenuController, didSelectMenuItem index: Int, direction: PageMenuNavigationDirection) {
Expand Down
9 changes: 1 addition & 8 deletions PageMenuExample/Sources/RootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ class RootViewController: UITableViewController, UIGestureRecognizerDelegate {
]

let items: [[String]] = [
["Apple", "Apricot", "Avocado", "Banana", "Blackberry",
"Apple", "Apricot", "Avocado", "Banana", "Blackberry",
"Apple", "Apricot", "Avocado", "Banana", "Blackberry",
"Apple", "Apricot", "Avocado", "Banana", "Blackberry",
"Apple", "Apricot", "Avocado", "Banana", "Blackberry",],
["Apple", "Apricot", "Avocado", "Banana", "Blackberry"],
["Blueberry", "Cantaloupe", "Cherry", "Cherimoya", "Clementine", "Coconut", "Cranberry", "Cucumber",
"Custard apple", "Damson", "Date", "Dragonfruit", "Durian", "Elderberry", "Feijoa",
"Custard apple", "Damson", "Date", "Dragonfruit", "Durian", "Elderberry", "Feijoa",
"Custard apple", "Damson", "Date", "Dragonfruit", "Durian", "Elderberry", "Feijoa",
"Custard apple", "Damson", "Date", "Dragonfruit", "Durian", "Elderberry", "Feijoa",],
["Fig", "Grape", "Grapefruit", "Guava", "Udara", "Honeyberry", "Huckleberry", "Jabuticaba"],
["Jackfruit", "Juniper berry", "Kiwi fruit", "Lemon", "Lime", "Lychee", "Mandarine",],
Expand Down
1 change: 0 additions & 1 deletion Sources/Util/PanBlockGestureRecognizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class PanBlockGestureRecognizer: UIPanGestureRecognizer {
func performAction(sender: UIGestureRecognizer) {
guard let panGesture = sender as? UIPanGestureRecognizer else { return }
let state = panGesture.state
// 対象ビューからみた座標
let panLocation = panGesture.location(in: self.inView)
let permissionVertical: CGFloat = 10
let swipeStroke: CGFloat = 10
Expand Down

0 comments on commit a6f508c

Please sign in to comment.