Skip to content

Commit

Permalink
Remove GTMTestTimer.
Browse files Browse the repository at this point in the history
A google search seems to say it wasn't used by anyone, and it calls
`mach_absolute_time()` this avoids having to include add an entry in an
xcprivacy manifest for a testing only api.
  • Loading branch information
thomasvl committed Jan 9, 2024
1 parent eba1cd2 commit f9f1613
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 227 deletions.
8 changes: 0 additions & 8 deletions GTM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
8B29078711F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B29078511F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.m */; };
8B29080911F8E1630064F50F /* GTMNSFileHandle+UniqueName.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B29078511F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.m */; };
8B29080A11F8E1670064F50F /* GTMNSFileHandle+UniqueName.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B29078411F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.h */; settings = {ATTRIBUTES = (Public, ); }; };
8B3590160E8190FA0041E21C /* GTMTestTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B3590150E8190FA0041E21C /* GTMTestTimer.h */; settings = {ATTRIBUTES = (Public, ); }; };
8B35901B0E8191750041E21C /* GTMTestTimerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B35901A0E8191750041E21C /* GTMTestTimerTest.m */; };
8B3E2A3F0EEB564D000681D8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F42E09AD0D19A62F00D5DDE0 /* Carbon.framework */; };
8B40994B0F93C5CC00DF540E /* GTMUILocalizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B4099490F93C5CC00DF540E /* GTMUILocalizer.h */; settings = {ATTRIBUTES = (Public, ); }; };
8B40994C0F93C5CC00DF540E /* GTMUILocalizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B40994A0F93C5CC00DF540E /* GTMUILocalizer.m */; };
Expand Down Expand Up @@ -194,8 +192,6 @@
8B29078411F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMNSFileHandle+UniqueName.h"; sourceTree = "<group>"; };
8B29078511F8D1BF0064F50F /* GTMNSFileHandle+UniqueName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSFileHandle+UniqueName.m"; sourceTree = "<group>"; };
8B29078611F8D1BF0064F50F /* GTMNSFileHandle+UniqueNameTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSFileHandle+UniqueNameTest.m"; sourceTree = "<group>"; };
8B3590150E8190FA0041E21C /* GTMTestTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMTestTimer.h; sourceTree = "<group>"; };
8B35901A0E8191750041E21C /* GTMTestTimerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMTestTimerTest.m; sourceTree = "<group>"; };
8B4099490F93C5CC00DF540E /* GTMUILocalizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMUILocalizer.h; sourceTree = "<group>"; };
8B40994A0F93C5CC00DF540E /* GTMUILocalizer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMUILocalizer.m; sourceTree = "<group>"; };
8B409BC50F94405A00DF540E /* GTMUILocalizerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMUILocalizerTest.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -601,8 +597,6 @@
F48FE29F0D198D36009257D2 /* GTMSenTestCase.h */,
8B7DCE180DFF39850017E983 /* GTMSenTestCase.m */,
F47466651296F19E0022C1FB /* GTMSenTestCaseTest.m */,
8B3590150E8190FA0041E21C /* GTMTestTimer.h */,
8B35901A0E8191750041E21C /* GTMTestTimerTest.m */,
8BA983C21D9AE7E6009724B5 /* TestData */,
8B45A2A20DA49C47001148C5 /* GTMUIUnitTestingHarness */,
);
Expand Down Expand Up @@ -667,7 +661,6 @@
F92B9FA80E2E64B900A2FE61 /* GTMLogger.h in Headers */,
F92B9FA90E2E64BC00A2FE61 /* GTMLogger+ASL.h in Headers */,
F95803FA0E2FB08F0049A088 /* GTMLoggerRingBufferWriter.h in Headers */,
8B3590160E8190FA0041E21C /* GTMTestTimer.h in Headers */,
8B6F4B630E8856CA00425D9F /* GTMDebugThreadValidation.h in Headers */,
F41711350ECDFBD500B9B276 /* GTMLightweightProxy.h in Headers */,
8B6C15930F356E6400E51E5D /* GTMNSObject+KeyValueObserving.h in Headers */,
Expand Down Expand Up @@ -906,7 +899,6 @@
files = (
8B45A21A0DA46E1D001148C5 /* GTMGeometryUtils.m in Sources */,
8B7DCE1B0DFF39850017E983 /* GTMSenTestCase.m in Sources */,
8B35901B0E8191750041E21C /* GTMTestTimerTest.m in Sources */,
F47466661296F19E0022C1FB /* GTMSenTestCaseTest.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
20 changes: 3 additions & 17 deletions GTMiPhone.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
archiveVersion = 1;
classes = {
};
objectVersion = 53;
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
8B2C72EB1D9EBBA10027BD14 /* GTMTestTimerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B2C72EA1D9EBBA10027BD14 /* GTMTestTimerTest.m */; };
8B5769B121CD7C8300D924D3 /* GTMTimeUtilsTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B5769AD21CD7C7600D924D3 /* GTMTimeUtilsTest.m */; };
8B5769B221CD7C8600D924D3 /* GTMTimeUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B5769AC21CD7C7600D924D3 /* GTMTimeUtils.m */; };
8B7651D81D9C872F00DB2C59 /* GTMLogger+ASL.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B7651D61D9C872C00DB2C59 /* GTMLogger+ASL.m */; };
Expand Down Expand Up @@ -99,8 +98,6 @@
8B2908AF11F8E7070064F50F /* GTMNSFileHandle+UniqueName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMNSFileHandle+UniqueName.h"; sourceTree = "<group>"; };
8B2908B011F8E7070064F50F /* GTMNSFileHandle+UniqueName.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSFileHandle+UniqueName.m"; sourceTree = "<group>"; };
8B2908B111F8E7070064F50F /* GTMNSFileHandle+UniqueNameTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSFileHandle+UniqueNameTest.m"; sourceTree = "<group>"; };
8B2C72E91D9EBBA10027BD14 /* GTMTestTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMTestTimer.h; sourceTree = "<group>"; };
8B2C72EA1D9EBBA10027BD14 /* GTMTestTimerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMTestTimerTest.m; sourceTree = "<group>"; };
8B308BCD0DAD0B8400183556 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
8B3AA9330E0336AC007E31B5 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
8B5769AC21CD7C7600D924D3 /* GTMTimeUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMTimeUtils.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -358,8 +355,6 @@
8BC047F60DAE928A00C2D1CA /* GTMSenTestCase.h */,
8BC047F70DAE928A00C2D1CA /* GTMSenTestCase.m */,
F4746720129703600022C1FB /* GTMSenTestCaseTest.m */,
8B2C72E91D9EBBA10027BD14 /* GTMTestTimer.h */,
8B2C72EA1D9EBBA10027BD14 /* GTMTestTimerTest.m */,
F435E49F0DC8F5290069CDE8 /* TestData */,
);
path = UnitTesting;
Expand Down Expand Up @@ -551,7 +546,6 @@
8B82CF3E1D9C2373007182AA /* GTMNSFileHandle+UniqueNameTest.m in Sources */,
8B82CF501D9C2385007182AA /* GTMSenTestCaseTest.m in Sources */,
8B82CF471D9C2373007182AA /* GTMStackTraceTest.m in Sources */,
8B2C72EB1D9EBBA10027BD14 /* GTMTestTimerTest.m in Sources */,
8B82CF401D9C2373007182AA /* GTMNSObject+KeyValueObservingTest.m in Sources */,
8B82CF451D9C2373007182AA /* GTMNSThread+BlocksTest.m in Sources */,
);
Expand Down Expand Up @@ -593,11 +587,7 @@
DEAD_CODE_STRIPPING = YES;
GTM_HOST_OTHER_LDFLAGS = "-ObjC -lz";
INFOPLIST_FILE = "UnitTest-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
Expand All @@ -611,11 +601,7 @@
DEAD_CODE_STRIPPING = YES;
GTM_HOST_OTHER_LDFLAGS = "-ObjC -lz";
INFOPLIST_FILE = "UnitTest-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand Down
4 changes: 0 additions & 4 deletions GoogleToolboxForMac.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,4 @@ Pod::Spec.new do |s|
}
end

s.subspec 'TestTimer' do |sp|
sp.source_files = 'UnitTesting/GTMTestTimer.h'
end

end
14 changes: 0 additions & 14 deletions UnitTesting/BUILD
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_build_test")
load("@build_bazel_rules_apple//apple:macos.bzl", "macos_build_test")

objc_library(
name = "TestTimer",
testonly = 1,
hdrs = [
"GTMTestTimer.h",
],
visibility = ["//visibility:public"],
deps = [
"//:Defines",
],
)

objc_library(
name = "SenTestCase",
testonly = 1,
Expand All @@ -32,7 +20,6 @@ ios_build_test(
name = "iOSBuildTest",
minimum_os_version = "12.0",
targets = [
":TestTimer",
":SenTestCase",
],
)
Expand All @@ -41,7 +28,6 @@ macos_build_test(
name = "macOSBuildTest",
minimum_os_version = "10.10",
targets = [
":TestTimer",
":SenTestCase",
],
)
128 changes: 0 additions & 128 deletions UnitTesting/GTMTestTimer.h

This file was deleted.

56 changes: 0 additions & 56 deletions UnitTesting/GTMTestTimerTest.m

This file was deleted.

0 comments on commit f9f1613

Please sign in to comment.