From ff65b9350459bf2c5d6ddc3748dc85747f7fda19 Mon Sep 17 00:00:00 2001 From: Levi Eggert Date: Tue, 16 Jul 2024 08:55:27 -0400 Subject: [PATCH] Fix swift lint unneeded_override --- .../LoadingArticle/LoadingArticleView.swift | 5 ----- .../ChooseYourOwnAdventureView.swift | 4 ---- .../Dashboard/Presentation/Tool/ToolView.swift | 8 -------- .../ToolTraining/Subviews/ToolTrainingTipView.swift | 4 ---- .../Views/Lesson/Views/Page/LessonPageView.swift | 5 ----- .../Renderer/Views/Tool/Views/Page/ToolPageView.swift | 4 ---- .../Training/Views/TrainingTip/TrainingTipView.swift | 11 ----------- 7 files changed, 41 deletions(-) diff --git a/godtools/App/Features/Articles/Presentation/LoadingArticle/LoadingArticleView.swift b/godtools/App/Features/Articles/Presentation/LoadingArticle/LoadingArticleView.swift index b66e40baab..09e175c0cd 100644 --- a/godtools/App/Features/Articles/Presentation/LoadingArticle/LoadingArticleView.swift +++ b/godtools/App/Features/Articles/Presentation/LoadingArticle/LoadingArticleView.swift @@ -22,9 +22,4 @@ class LoadingArticleView: LoadingView { required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } - - override func setupLayout() { - super.setupLayout() - } } - diff --git a/godtools/App/Features/Dashboard/Presentation/ChooseYourOwnAdventure/ChooseYourOwnAdventureView.swift b/godtools/App/Features/Dashboard/Presentation/ChooseYourOwnAdventure/ChooseYourOwnAdventureView.swift index 7d321fc6c4..eb99c99677 100644 --- a/godtools/App/Features/Dashboard/Presentation/ChooseYourOwnAdventure/ChooseYourOwnAdventureView.swift +++ b/godtools/App/Features/Dashboard/Presentation/ChooseYourOwnAdventure/ChooseYourOwnAdventureView.swift @@ -38,10 +38,6 @@ class ChooseYourOwnAdventureView: MobileContentPagesView { pageNavigationView.gestureScrollingEnabled = false } - override func setupBinding() { - super.setupBinding() - } - func languageTapped(index: Int) { viewModel.languageTapped(index: index) } diff --git a/godtools/App/Features/Dashboard/Presentation/Tool/ToolView.swift b/godtools/App/Features/Dashboard/Presentation/Tool/ToolView.swift index cecb1d0087..6f3498e140 100644 --- a/godtools/App/Features/Dashboard/Presentation/Tool/ToolView.swift +++ b/godtools/App/Features/Dashboard/Presentation/Tool/ToolView.swift @@ -30,10 +30,6 @@ class ToolView: MobileContentPagesView { print("view didload: \(type(of: self))") } - override func setupLayout() { - super.setupLayout() - } - override func setupBinding() { super.setupBinding() @@ -52,10 +48,6 @@ class ToolView: MobileContentPagesView { } } - override func viewWillAppear(_ animated: Bool) { - super.viewWillAppear(animated) - } - override func didConfigurePageView(pageView: MobileContentPageView) { if let toolPageView = pageView as? ToolPageView { toolPageView.setToolPageDelegate(delegate: self) diff --git a/godtools/App/Features/ToolTraining/Subviews/ToolTrainingTipView.swift b/godtools/App/Features/ToolTraining/Subviews/ToolTrainingTipView.swift index 2347fd6a23..7509dbaf50 100644 --- a/godtools/App/Features/ToolTraining/Subviews/ToolTrainingTipView.swift +++ b/godtools/App/Features/ToolTraining/Subviews/ToolTrainingTipView.swift @@ -15,10 +15,6 @@ class ToolTrainingTipView: UICollectionViewCell { private var mobileContentView: MobileContentView? - override func awakeFromNib() { - super.awakeFromNib() - } - override func prepareForReuse() { super.prepareForReuse() diff --git a/godtools/App/Services/Renderer/Views/Lesson/Views/Page/LessonPageView.swift b/godtools/App/Services/Renderer/Views/Lesson/Views/Page/LessonPageView.swift index 3ebace3a44..ffdc22307c 100644 --- a/godtools/App/Services/Renderer/Views/Lesson/Views/Page/LessonPageView.swift +++ b/godtools/App/Services/Renderer/Views/Lesson/Views/Page/LessonPageView.swift @@ -57,11 +57,6 @@ class LessonPageView: MobileContentPageView { contentContainerView.backgroundColor = .clear } - override func setupBinding() { - super.setupBinding() - - } - // MARK: - MobileContentView override func renderChild(childView: MobileContentView) { diff --git a/godtools/App/Services/Renderer/Views/Tool/Views/Page/ToolPageView.swift b/godtools/App/Services/Renderer/Views/Tool/Views/Page/ToolPageView.swift index 04eb413cf7..1fa4e916e6 100644 --- a/godtools/App/Services/Renderer/Views/Tool/Views/Page/ToolPageView.swift +++ b/godtools/App/Services/Renderer/Views/Tool/Views/Page/ToolPageView.swift @@ -81,10 +81,6 @@ class ToolPageView: MobileContentPageView { setCallToActionHidden(hidden: true, animated: false) } - override func setupBinding() { - super.setupBinding() - } - override func getPositionState() -> MobileContentViewPositionState { let cardPosition: Int? = cardsView?.getCurrentCardPosition() diff --git a/godtools/App/Services/Renderer/Views/Training/Views/TrainingTip/TrainingTipView.swift b/godtools/App/Services/Renderer/Views/Training/Views/TrainingTip/TrainingTipView.swift index fb33894e73..dfae3e3dd6 100644 --- a/godtools/App/Services/Renderer/Views/Training/Views/TrainingTip/TrainingTipView.swift +++ b/godtools/App/Services/Renderer/Views/Training/Views/TrainingTip/TrainingTipView.swift @@ -22,7 +22,6 @@ class TrainingTipView: MobileContentView, NibBased { super.init(viewModel: viewModel, frame: CGRect(x: 0, y: 0, width: 100, height: 100)) loadNib() - setupLayout() setupBinding() tipButton.addTarget(self, action: #selector(handleTip(button:)), for: .touchUpInside) @@ -32,10 +31,6 @@ class TrainingTipView: MobileContentView, NibBased { fatalError("init(coder:) has not been implemented") } - private func setupLayout() { - - } - private func setupBinding() { viewModel.trainingTipBackgroundImage.addObserver(self) { [weak self] (backgroundImage: UIImage?) in @@ -58,13 +53,7 @@ class TrainingTipView: MobileContentView, NibBased { // MARK: - MobileContentView - override func renderChild(childView: MobileContentView) { - super.renderChild(childView: childView) - } - override var heightConstraintType: MobileContentViewHeightConstraintType { return .equalToSize(size: CGSize(width: 50, height: 50)) } - - // MARK: - }