From 53bea30609073a69273e4449039c61974943fb96 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Lapersonne Date: Fri, 26 Jan 2024 18:05:44 +0100 Subject: [PATCH] refactor(#647): remove dead code Signed-off-by: Pierre-Yves Lapersonne --- .../Components/Pages/Chips/ChoiceChipsVariant.swift | 1 - .../Components/Pages/Chips/FilterChipVariant.swift | 8 -------- .../Screens/Modules/Lists/ListModule.swift | 1 - 3 files changed, 10 deletions(-) diff --git a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/ChoiceChipsVariant.swift b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/ChoiceChipsVariant.swift index a0f853dc..f3bb7fc2 100644 --- a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/ChoiceChipsVariant.swift +++ b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/ChoiceChipsVariant.swift @@ -25,7 +25,6 @@ struct ChoiceChipVariant: View { // ======================= @ObservedObject private var model: ChoiceChipVariantModel - @State private var isSelected: Bool = false @State private var selectedFood: Food private let foods: [Food] diff --git a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/FilterChipVariant.swift b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/FilterChipVariant.swift index 441c169f..9f592020 100644 --- a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/FilterChipVariant.swift +++ b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Chips/FilterChipVariant.swift @@ -30,14 +30,6 @@ final class FilterChipVariantModel: ObservableObject { case .avatar: return "Avatar" } } - - var chip: ODSChoiceChip { - .init(text: Text(description), value: self) - } - - static var chips: [ODSChoiceChip] { - Self.allCases.map { $0.chip } - } } } diff --git a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Modules/Lists/ListModule.swift b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Modules/Lists/ListModule.swift index da50bc04..407ff538 100644 --- a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Modules/Lists/ListModule.swift +++ b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Modules/Lists/ListModule.swift @@ -64,7 +64,6 @@ private struct ListModuleInner: View { // MARK: Stored Properties // ======================= - @Environment(\.editMode) private var editMode @ObservedObject var optionModel: ListModuleOptionsModel @ObservedObject var dataModel: ListModuleDataModel