Skip to content

Commit 6720001

Browse files
committed
Remove std.Build.anonymousDependency
1 parent cd14a27 commit 6720001

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
@@ -1872,25 +1872,6 @@ pub fn dependency(b: *Build, name: []const u8, args: anytype) *Dependency {
18721872
unreachable; // Bad @dependencies source
18731873
}
18741874

1875-
pub fn anonymousDependency(
1876-
b: *Build,
1877-
/// The path to the directory containing the dependency's build.zig file,
1878-
/// relative to the current package's build.zig.
1879-
relative_build_root: []const u8,
1880-
/// A direct `@import` of the build.zig of the dependency.
1881-
comptime build_zig: type,
1882-
args: anytype,
1883-
) *Dependency {
1884-
const arena = b.allocator;
1885-
const build_root = b.build_root.join(arena, &.{relative_build_root}) catch @panic("OOM");
1886-
const name = arena.dupe(u8, relative_build_root) catch @panic("OOM");
1887-
for (name) |*byte| switch (byte.*) {
1888-
'/', '\\' => byte.* = '.',
1889-
else => continue,
1890-
};
1891-
return dependencyInner(b, name, build_root, build_zig, &.{}, args);
1892-
}
1893-
18941875
fn userValuesAreSame(lhs: UserValue, rhs: UserValue) bool {
18951876
switch (lhs) {
18961877
.flag => {},

0 commit comments

Comments
 (0)