From ff468410adf795e41ee15fd65eeec47f988652b1 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 28 Oct 2020 01:18:15 +0100 Subject: [PATCH] Remove debugging output --- src/rules/compile.ts | 3 --- src/rules/index.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/src/rules/compile.ts b/src/rules/compile.ts index 0e0045e..645461b 100644 --- a/src/rules/compile.ts +++ b/src/rules/compile.ts @@ -191,7 +191,6 @@ class Match { } } else { for (const rule of this.#rules) { - console.log(rule.operation, operation); if (rule.operation === operation) { if (rule.test(localVars)) return true; } @@ -283,8 +282,6 @@ export function getRuleRunner(service: ServiceStatement) { const submatches = s_match.matches.map((sub) => createMatch(sub)); const match = new Match(segments, rules, wildcard, submatches); - console.log("Adding match", segments, rules, wildcard, submatches); - return match; }; diff --git a/src/rules/index.ts b/src/rules/index.ts index f26ad54..164610b 100644 --- a/src/rules/index.ts +++ b/src/rules/index.ts @@ -9,7 +9,6 @@ export default function compileRule(rule: string) { let error: RuleError | undefined; try { const tokenised = tokenize(rule); - // console.log(tokenised); const parsed = parse(tokenised); const dbservice = parsed.find((e) => e.name === "realtimedb");