aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-17 16:53:13 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-17 16:53:13 -0700
commit01410bd09d3fdbeb40f72999e46aefa99e205e73 (patch)
treeeb21e444d83862eeab44e43027762c115538eb4d
parentdebd5d886c010ccf8f556517b448813cb510d114 (diff)
Removed unnecessary code
-rw-r--r--bp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/bp.c b/bp.c
index 8bc9283..e007e52 100644
--- a/bp.c
+++ b/bp.c
@@ -635,13 +635,6 @@ int main(int argc, char *argv[])
tty_out = fopen("/dev/tty", "w");
}
- // To ensure recursion (and left recursion in particular) works properly,
- // we need to define a rule called "pattern" with the value of whatever
- // pattern the args specified, and use `pattern` as the thing being matched.
- defs = with_def(defs, strlen("pattern"), "pattern", pattern);
- file_t *patref_file = spoof_file(&loaded_files, "<pattern ref>", "pattern", -1);
- pattern = bp_pattern(patref_file, patref_file->start);
-
int found = 0;
if (options.mode == MODE_JSON) printf("[");
if (options.git_mode) { // Get the list of files from `git --ls-files ...`