Skip to content

Commit 58209d6

Browse files
committed
recipe: remove unused RecipeDebug feature
1 parent 5da2468 commit 58209d6

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

compiler/c2recipe.c2

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ import build_target;
2222

2323
import stdlib;
2424
import string;
25-
#if RecipeDebug
26-
import stdio;
27-
#endif
2825

2926
public type Recipe struct @(opaque) {
3027
string_pool.Pool* pool;
@@ -89,17 +86,3 @@ public fn const build_target.PluginList* Recipe.getPlugins(const Recipe* r) {
8986
return &r.plugins;
9087
}
9188

92-
#if RecipeDebug
93-
public fn void Recipe.dump(const Recipe* r) {
94-
stdio.printf("Recipe:\n");
95-
for (u32 i=0; i<r.num_targets; i++) {
96-
const Target* t = r.targets[i];
97-
stdio.printf(" target %s\n", t.name);
98-
for (u32 j=0; j<t.num_files; j++) {
99-
File* f = &t.files[j];
100-
stdio.printf(" %s\n", f.name);
101-
}
102-
}
103-
}
104-
#endif
105-

recipe.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ executable c2c
160160
$backend c
161161
# $backend ir
162162
# $disable-asserts
163-
# $config RecipeDebug
164163
# $config DumpTokens
165164
# $config PrintGenerated
166165
# $config DebugIr

0 commit comments

Comments
 (0)