Skip to content

Commit 9c514e5

Browse files
committed
chore: remove dead code with Periphery
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent ac059f1 commit 9c514e5

File tree

9 files changed

+1
-22
lines changed

9 files changed

+1
-22
lines changed

Showcase/Showcase.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@
10201020
);
10211021
runOnlyForDeploymentPostprocessing = 0;
10221022
shellPath = /bin/sh;
1023-
shellScript = "# Periphery action to look for dead code\nperiphery scan --strict --workspace DemoApp.xcworkspace --schemes DemoApp --targets DemoApp --format xcode\n";
1023+
shellScript = "# Periphery action to look for dead code\nperiphery scan --strict --workspace Showcase.xcworkspace --schemes Showcase --targets Showcase --format xcode\n";
10241024
};
10251025
/* End PBXShellScriptBuildPhase section */
10261026

Showcase/Showcase/Pages/About/AccessibilityStatement/AccessibilityStatementPage.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,3 @@ struct AccessibilityStatementPage: View {
3838
}
3939
}
4040
}
41-
42-
// MARK: - Previews
43-
44-
struct AccessibilityStatementPage_Previews: PreviewProvider {
45-
static var previews: some View {
46-
AccessibilityStatementPage()
47-
}
48-
}

Showcase/Showcase/Pages/Tokens/Border/BorderTokenPage.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ struct BorderTokenPage: View {
8282

8383
struct IllustrationWidth: View {
8484
@Environment(\.theme) private var theme
85-
@Environment(\.colorScheme) private var colorScheme
8685

8786
let namedWidth: NamedBorderWidth
8887

@@ -103,7 +102,6 @@ struct BorderTokenPage: View {
103102

104103
struct IllustrationRadius: View {
105104
@Environment(\.theme) private var theme
106-
@Environment(\.colorScheme) private var colorScheme
107105

108106
let namedRadius: NamedBorderRadius
109107

@@ -124,7 +122,6 @@ struct BorderTokenPage: View {
124122

125123
struct IllustrationStyle: View {
126124
@Environment(\.theme) private var theme
127-
@Environment(\.colorScheme) private var colorScheme
128125

129126
let namedStyle: NamedBorderStyle
130127

Showcase/Showcase/Pages/Tokens/Color/ColorTokenPage.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import SwiftUI
1919
struct ColorTokenPage: View {
2020

2121
@Environment(\.theme) private var theme
22-
@Environment(\.colorScheme) private var colorScheme
2322

2423
// MARK: Body
2524

Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceBasicTokenIllustrations.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ struct FixedSpaceProperty: View {
4242
struct ScaledSpaceProperty: View {
4343

4444
@Environment(\.theme) private var theme
45-
@Environment(\.colorScheme) private var colorScheme
4645

4746
var body: some View {
4847
VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) {
@@ -58,7 +57,6 @@ struct ScaledSpaceProperty: View {
5857
struct Illustration: View {
5958

6059
@Environment(\.theme) private var theme
61-
@Environment(\.colorScheme) private var colorScheme
6260
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
6361
@Environment(\.verticalSizeClass) private var verticalSizeClass
6462

Showcase/Showcase/Pages/Tokens/Dimension/Space/SpaceTokenPage.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ import SwiftUI
2121
struct SpaceTokenPage: View {
2222

2323
@Environment(\.theme) private var theme
24-
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
25-
@Environment(\.verticalSizeClass) private var verticalSizeClass
26-
@Environment(\.colorScheme) private var colorScheme
2724

2825
var body: some View {
2926
Group {

Showcase/Showcase/Pages/Tokens/Elevation/ElevationTokenPage.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import SwiftUI
2121
struct ElevationTokenPage: View {
2222

2323
@Environment(\.theme) private var theme
24-
@Environment(\.colorScheme) private var colorScheme
2524

2625
var body: some View {
2726
VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) {

Showcase/Showcase/Pages/Tokens/Font/FontTokenPage.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ import SwiftUI
2020
struct FontTokenPage: View {
2121

2222
@Environment(\.theme) private var theme
23-
@Environment(\.colorScheme) private var colorScheme
24-
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
2523

2624
var body: some View {
2725
VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) {

Showcase/Showcase/Pages/Tokens/Opacity/OpacityTokenPage.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import SwiftUI
2020
struct OpacityTokenPage: View {
2121

2222
@Environment(\.theme) private var theme
23-
@Environment(\.colorScheme) private var colorScheme
2423

2524
var body: some View {
2625
VStack(alignment: .leading, spacing: theme.spaces.spaceFixedNone) {

0 commit comments

Comments
 (0)