From 01410bd09d3fdbeb40f72999e46aefa99e205e73 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Jul 2021 16:53:13 -0700 Subject: Removed unnecessary code --- bp.c | 7 ------- 1 file changed, 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", -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 ...` -- cgit v1.2.3