Skip to content

Commit 1cab298

Browse files
Remove dead code, dependencies
1 parent cc973cb commit 1cab298

File tree

8 files changed

+17
-112
lines changed

8 files changed

+17
-112
lines changed

Alidade.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlidadeUI/Tests/AlidadeUITests/FiniteColorPickerTests.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ struct FiniteColorPickerTests {
5151
let picker = FiniteColorPicker("", selection: color, in: Self.colors)
5252
let sut = try picker.inspect()
5353

54-
Testchamber.assumeRedWindowBreaks {
55-
let button = try sut.find(viewWithTag: expectedColor)
56-
try button.button().tap()
57-
#expect(color.wrappedValue == expectedColor)
58-
}
54+
let button = try sut.find(viewWithTag: expectedColor)
55+
try button.button().tap()
56+
#expect(color.wrappedValue == expectedColor)
5957
}
6058

6159
@Test(.tags(.finiteColorPicker))

AllTests.xctestplan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"target" : {
5555
"containerPath" : "container:MCMaps.xcodeproj",
5656
"identifier" : "950402DF2D4D522200F51903",
57-
"name" : "MCMapsTests"
57+
"name" : "AlidadeTests"
5858
}
5959
}
6060
],

MCMaps.xcodeproj/project.pbxproj

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
95317F2E2F0B0FB9007BCDA0 /* ImageProcessing in Frameworks */ = {isa = PBXBuildFile; productRef = 95317F2D2F0B0FB9007BCDA0 /* ImageProcessing */; };
1616
953CBB1D2E12FBD400C54DFD /* Testchamber in Frameworks */ = {isa = PBXBuildFile; productRef = 953CBB1C2E12FBD400C54DFD /* Testchamber */; };
1717
954489A82E2D66BD0088B879 /* MCMap in Frameworks */ = {isa = PBXBuildFile; productRef = 954489A72E2D66BD0088B879 /* MCMap */; };
18-
955A44382D8F47C600262A6D /* AdaptableSidebarSheetView in Frameworks */ = {isa = PBXBuildFile; productRef = 955A44372D8F47C600262A6D /* AdaptableSidebarSheetView */; };
1918
955A4D682D932A6500262A6D /* DesignLibrary in Frameworks */ = {isa = PBXBuildFile; productRef = 955A4D672D932A6500262A6D /* DesignLibrary */; };
2019
955CD1652DAAE1BE007F6FA1 /* CubiomesKit in Frameworks */ = {isa = PBXBuildFile; productRef = 955CD1642DAAE1BE007F6FA1 /* CubiomesKit */; };
2120
956603732EA588CC0049C15D /* AlidadeSearchEngine in Frameworks */ = {isa = PBXBuildFile; productRef = 956603722EA588CC0049C15D /* AlidadeSearchEngine */; };
22-
95F6B0AD2DADE504006A1B8C /* AsyncAlgorithms in Frameworks */ = {isa = PBXBuildFile; productRef = 95F6B0AC2DADE504006A1B8C /* AsyncAlgorithms */; };
2321
95FB72D02DE255630003CC61 /* AlidadeUI in Frameworks */ = {isa = PBXBuildFile; productRef = 95FB72CF2DE255630003CC61 /* AlidadeUI */; };
2422
/* End PBXBuildFile section */
2523

@@ -72,14 +70,12 @@
7270
files = (
7371
9504030F2D4D7E0A00F51903 /* CubiomesKit in Frameworks */,
7472
9500D89E2F1229FA00B4A633 /* BedrockUI in Frameworks */,
75-
955A44382D8F47C600262A6D /* AdaptableSidebarSheetView in Frameworks */,
7673
95FB72D02DE255630003CC61 /* AlidadeUI in Frameworks */,
7774
956603732EA588CC0049C15D /* AlidadeSearchEngine in Frameworks */,
7875
955CD1652DAAE1BE007F6FA1 /* CubiomesKit in Frameworks */,
7976
9500D89C2F1229FA00B4A633 /* Bedrock in Frameworks */,
8077
955A4D682D932A6500262A6D /* DesignLibrary in Frameworks */,
8178
95141F562F0874D200DAF47D /* DocumentKit in Frameworks */,
82-
95F6B0AD2DADE504006A1B8C /* AsyncAlgorithms in Frameworks */,
8379
954489A82E2D66BD0088B879 /* MCMap in Frameworks */,
8480
95317F2E2F0B0FB9007BCDA0 /* ImageProcessing in Frameworks */,
8581
);
@@ -138,10 +134,8 @@
138134
name = Alidade;
139135
packageProductDependencies = (
140136
9504030E2D4D7E0A00F51903 /* CubiomesKit */,
141-
955A44372D8F47C600262A6D /* AdaptableSidebarSheetView */,
142137
955A4D672D932A6500262A6D /* DesignLibrary */,
143138
955CD1642DAAE1BE007F6FA1 /* CubiomesKit */,
144-
95F6B0AC2DADE504006A1B8C /* AsyncAlgorithms */,
145139
95FB72CF2DE255630003CC61 /* AlidadeUI */,
146140
954489A72E2D66BD0088B879 /* MCMap */,
147141
956603722EA588CC0049C15D /* AlidadeSearchEngine */,
@@ -210,10 +204,8 @@
210204
packageReferences = (
211205
95DDE9652D57D0E1002B29D9 /* XCRemoteSwiftPackageReference "SwiftLintPlugins" */,
212206
951FE2BA2D5937630091BE11 /* XCRemoteSwiftPackageReference "ViewInspector" */,
213-
955A44362D8F47C600262A6D /* XCRemoteSwiftPackageReference "AdaptableSidebarSheetView" */,
214207
955A4D662D932A6500262A6D /* XCLocalSwiftPackageReference "DesignLibrary" */,
215208
955CD1632DAAE1BE007F6FA1 /* XCRemoteSwiftPackageReference "CubiomesKit" */,
216-
95F6B0AB2DADE504006A1B8C /* XCRemoteSwiftPackageReference "swift-async-algorithms" */,
217209
95FB72CE2DE255630003CC61 /* XCLocalSwiftPackageReference "AlidadeUI" */,
218210
953CBB1B2E12FBD400C54DFD /* XCLocalSwiftPackageReference "Testchamber" */,
219211
954489A62E2D66BD0088B879 /* XCRemoteSwiftPackageReference "mcmap" */,
@@ -682,14 +674,6 @@
682674
minimumVersion = 2.0.0;
683675
};
684676
};
685-
955A44362D8F47C600262A6D /* XCRemoteSwiftPackageReference "AdaptableSidebarSheetView" */ = {
686-
isa = XCRemoteSwiftPackageReference;
687-
repositoryURL = "https://github.com/AlidadeMC/AdaptableSidebarSheetView";
688-
requirement = {
689-
branch = main;
690-
kind = branch;
691-
};
692-
};
693677
955CD1632DAAE1BE007F6FA1 /* XCRemoteSwiftPackageReference "CubiomesKit" */ = {
694678
isa = XCRemoteSwiftPackageReference;
695679
repositoryURL = "https://source.marquiskurt.net/AlidadeMC/CubiomesKit";
@@ -714,14 +698,6 @@
714698
minimumVersion = 0.58.2;
715699
};
716700
};
717-
95F6B0AB2DADE504006A1B8C /* XCRemoteSwiftPackageReference "swift-async-algorithms" */ = {
718-
isa = XCRemoteSwiftPackageReference;
719-
repositoryURL = "https://github.com/apple/swift-async-algorithms.git";
720-
requirement = {
721-
kind = upToNextMajorVersion;
722-
minimumVersion = 1.0.3;
723-
};
724-
};
725701
/* End XCRemoteSwiftPackageReference section */
726702

727703
/* Begin XCSwiftPackageProductDependency section */
@@ -763,11 +739,6 @@
763739
package = 954489A62E2D66BD0088B879 /* XCRemoteSwiftPackageReference "mcmap" */;
764740
productName = MCMap;
765741
};
766-
955A44372D8F47C600262A6D /* AdaptableSidebarSheetView */ = {
767-
isa = XCSwiftPackageProductDependency;
768-
package = 955A44362D8F47C600262A6D /* XCRemoteSwiftPackageReference "AdaptableSidebarSheetView" */;
769-
productName = AdaptableSidebarSheetView;
770-
};
771742
955A4D672D932A6500262A6D /* DesignLibrary */ = {
772743
isa = XCSwiftPackageProductDependency;
773744
productName = DesignLibrary;
@@ -787,11 +758,6 @@
787758
package = 95DDE9652D57D0E1002B29D9 /* XCRemoteSwiftPackageReference "SwiftLintPlugins" */;
788759
productName = "plugin:SwiftLintBuildToolPlugin";
789760
};
790-
95F6B0AC2DADE504006A1B8C /* AsyncAlgorithms */ = {
791-
isa = XCSwiftPackageProductDependency;
792-
package = 95F6B0AB2DADE504006A1B8C /* XCRemoteSwiftPackageReference "swift-async-algorithms" */;
793-
productName = AsyncAlgorithms;
794-
};
795761
95FB72CF2DE255630003CC61 /* AlidadeUI */ = {
796762
isa = XCSwiftPackageProductDependency;
797763
productName = AlidadeUI;

MCMaps/Views/Search/CartographySearchView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import AlidadeSearchEngine
9-
import AsyncAlgorithms
109
import CubiomesKit
1110
import MCMap
1211
import SwiftUI

MCMapsTests/Views/Shared/LocationBadgeTests.swift

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ struct LocationBadgeTests {
3232
let badge = LocationBadge(location: .init(x: 1847, y: 1847))
3333
let sut = try badge.inspect()
3434

35-
Testchamber.assumeRedWindowBreaks {
36-
let hStack = try sut.hStack()
37-
#expect(try hStack.background().shape().fillShapeStyle(Material.self) == .thinMaterial)
38-
39-
let label = try hStack.label(0)
40-
#expect(try label.icon().image().actualImage() == Image(systemName: "location.fill"))
41-
#expect(try label.title().text().string() == "X: 1847, Z: 1847")
42-
#expect(label.hasPadding())
43-
#expect(try label.padding() == .init(top: 3, leading: 6, bottom: 3, trailing: 6))
44-
}
35+
let hStack = try sut.hStack()
36+
let label = try hStack.label(0)
37+
#expect(try label.icon().image().actualImage() == Image(systemName: "location.fill"))
38+
#expect(try label.title().text().string() == "X: 1847, Z: 1847")
39+
#expect(label.hasPadding())
40+
#expect(try label.padding() == .init(top: 3, leading: 6, bottom: 3, trailing: 6))
4541
}
4642
}
4743

MCMapsTests/Views/Shared/WorldDimensionPickerViewTests.swift

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,19 @@ struct WorldDimensionPickerViewTests {
2626
let overworld = try picker.label(0)
2727
#expect(try overworld.title().text().string() == "Overworld")
2828
#expect(try overworld.icon().image().actualImage() == Image(semanticIcon: .overworld))
29-
Testchamber.assumeRedWindowBreaks {
30-
let tag = try overworld.tag()
31-
#expect(tag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.overworld)
32-
33-
}
29+
let tag = try overworld.tag()
30+
#expect(tag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.overworld)
3431

3532
let nether = try picker.label(1)
3633
#expect(try nether.title().text().string() == "Nether")
3734
#expect(try nether.icon().image().actualImage() == Image(semanticIcon: .nether))
38-
Testchamber.assumeRedWindowBreaks {
39-
let tag = try nether.tag()
40-
#expect(tag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.nether)
41-
}
35+
let netherTag = try nether.tag()
36+
#expect(netherTag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.nether)
4237

4338
let end = try picker.label(2)
4439
#expect(try end.title().text().string() == "End")
4540
#expect(try end.icon().image().actualImage() == Image(semanticIcon: .end))
46-
Testchamber.assumeRedWindowBreaks {
47-
let tag = try end.tag()
48-
#expect(tag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.end)
49-
}
41+
let endTag = try end.tag()
42+
#expect(endTag as? MinecraftWorld.Dimension == MinecraftWorld.Dimension.end)
5043
}
5144
}

Testchamber/Sources/Testchamber/Testchamber.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,4 @@ public enum Testchamber {
3434
return false
3535
#endif
3636
}
37-
38-
/// Run a test that is known to be faulty under the Red Window build scheme.
39-
/// - Parameter comment: A corresponding comment for the issue.
40-
/// - Parameter sourceLocation: Where the faulty call occurs.
41-
/// - Parameter target: The test to be executed.
42-
public static func assumeRedWindowBreaks(
43-
_ comment: Comment? = nil,
44-
at sourceLocation: SourceLocation = #_sourceLocation,
45-
when target: @escaping () throws -> Void
46-
) {
47-
if #available(iOS 19, macOS 16, *) {
48-
withKnownIssue(comment, isIntermittent: true, sourceLocation: sourceLocation) {
49-
try target()
50-
}
51-
} else {
52-
#expect(throws: Never.self, sourceLocation: sourceLocation) {
53-
try target()
54-
}
55-
}
56-
}
5737
}

0 commit comments

Comments
 (0)