authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-27 17:09:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-27 17:09:07-07:00
logca2e17e0a14b3bb63e9d1c75be7147357f87e9af
tree6c6dc9a6419f38b109c6b2cae75ee0403245c03b
parent50edad37ba745502174e49af922b179b1efdd99c

delete some vestigal dead code


2 files changed, 0 insertions(+), 11 deletions(-)

src/Compilation.zig-5
......@@ -255,7 +255,6 @@ mutex: if (builtin.single_threaded) struct {
255255} else std.Thread.Mutex = .{},
256256
257257test_filters: []const []const u8,
258test_name_prefix: ?[]const u8,
259258
260259link_task_wait_group: WaitGroup = .{},
261260link_prog_node: std.Progress.Node = std.Progress.Node.none,
......@@ -1766,7 +1765,6 @@ pub const CreateOptions = struct {
17661765 clang_preprocessor_mode: ClangPreprocessorMode = .no,
17671766 reference_trace: ?u32 = null,
17681767 test_filters: []const []const u8 = &.{},
1769 test_name_prefix: ?[]const u8 = null,
17701768 test_runner_path: ?[]const u8 = null,
17711769 subsystem: ?std.Target.SubSystem = null,
17721770 mingw_unicode_entry_point: bool = false,
......@@ -2266,7 +2264,6 @@ pub fn create(gpa: Allocator, arena: Allocator, diag: *CreateDiagnostic, options
22662264 .time_report = if (options.time_report) .init else null,
22672265 .stack_report = options.stack_report,
22682266 .test_filters = options.test_filters,
2269 .test_name_prefix = options.test_name_prefix,
22702267 .debug_compiler_runtime_libs = options.debug_compiler_runtime_libs,
22712268 .debug_compile_errors = options.debug_compile_errors,
22722269 .debug_incremental = options.debug_incremental,
......@@ -2416,7 +2413,6 @@ pub fn create(gpa: Allocator, arena: Allocator, diag: *CreateDiagnostic, options
24162413 hash.add(options.config.dll_export_fns);
24172414 hash.add(options.config.is_test);
24182415 hash.addListOfBytes(options.test_filters);
2419 hash.addOptionalBytes(options.test_name_prefix);
24202416 hash.add(options.skip_linker_dependencies);
24212417 hash.add(options.emit_h != .no);
24222418 hash.add(error_limit);
......@@ -3450,7 +3446,6 @@ fn addNonIncrementalStuffToCacheManifest(
34503446
34513447 // Synchronize with other matching comments: ZigOnlyHashStuff
34523448 man.hash.addListOfBytes(comp.test_filters);
3453 man.hash.addOptionalBytes(comp.test_name_prefix);
34543449 man.hash.add(comp.skip_linker_dependencies);
34553450 //man.hash.add(zcu.emit_h != .no);
34563451 man.hash.add(zcu.error_limit);
src/main.zig-6
......@@ -668,10 +668,8 @@ const usage_build_generic =
668668 \\
669669 \\Test Options:
670670 \\ --test-filter [text] Skip tests that do not match any filter
671 \\ --test-name-prefix [text] Add prefix to all tests
672671 \\ --test-cmd [arg] Specify test execution command one arg at a time
673672 \\ --test-cmd-bin Appends test binary path to test cmd args
674 \\ --test-evented-io Runs the test in evented I/O mode
675673 \\ --test-no-exec Compiles test binary without running it
676674 \\ --test-runner [path] Specify a custom test runner
677675 \\
......@@ -896,7 +894,6 @@ fn buildOutputType(
896894 var build_id: ?std.zig.BuildId = null;
897895 var runtime_args_start: ?usize = null;
898896 var test_filters: std.ArrayListUnmanaged([]const u8) = .empty;
899 var test_name_prefix: ?[]const u8 = null;
900897 var test_runner_path: ?[]const u8 = null;
901898 var override_local_cache_dir: ?[]const u8 = try EnvVar.ZIG_LOCAL_CACHE_DIR.get(arena);
902899 var override_global_cache_dir: ?[]const u8 = try EnvVar.ZIG_GLOBAL_CACHE_DIR.get(arena);
......@@ -1326,8 +1323,6 @@ fn buildOutputType(
13261323 create_module.libc_paths_file = args_iter.nextOrFatal();
13271324 } else if (mem.eql(u8, arg, "--test-filter")) {
13281325 try test_filters.append(arena, args_iter.nextOrFatal());
1329 } else if (mem.eql(u8, arg, "--test-name-prefix")) {
1330 test_name_prefix = args_iter.nextOrFatal();
13311326 } else if (mem.eql(u8, arg, "--test-runner")) {
13321327 test_runner_path = args_iter.nextOrFatal();
13331328 } else if (mem.eql(u8, arg, "--test-cmd")) {
......@@ -3495,7 +3490,6 @@ fn buildOutputType(
34953490 .stack_report = stack_report,
34963491 .build_id = build_id,
34973492 .test_filters = test_filters.items,
3498 .test_name_prefix = test_name_prefix,
34993493 .test_runner_path = test_runner_path,
35003494 .cache_mode = cache_mode,
35013495 .subsystem = subsystem,