Skip to content

Commit c9c080c

Browse files
committed
Remove std.Build.anonymousDependency
1 parent 9568c06 commit c9c080c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lib/std/Build.zig

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,25 +1885,6 @@ pub fn dependency(b: *Build, name: []const u8, args: anytype) *Dependency {
18851885
unreachable; // Bad @dependencies source
18861886
}
18871887

1888-
pub fn anonymousDependency(
1889-
b: *Build,
1890-
/// The path to the directory containing the dependency's build.zig file,
1891-
/// relative to the current package's build.zig.
1892-
relative_build_root: []const u8,
1893-
/// A direct `@import` of the build.zig of the dependency.
1894-
comptime build_zig: type,
1895-
args: anytype,
1896-
) *Dependency {
1897-
const arena = b.allocator;
1898-
const build_root = b.build_root.join(arena, &.{relative_build_root}) catch @panic("OOM");
1899-
const name = arena.dupe(u8, relative_build_root) catch @panic("OOM");
1900-
for (name) |*byte| switch (byte.*) {
1901-
'/', '\\' => byte.* = '.',
1902-
else => continue,
1903-
};
1904-
return dependencyInner(b, name, build_root, build_zig, &.{}, args);
1905-
}
1906-
19071888
fn userValuesAreSame(lhs: UserValue, rhs: UserValue) bool {
19081889
switch (lhs) {
19091890
.flag => {},

0 commit comments

Comments
 (0)