From 527ecb5ee24c98bb6923a61c6b0d502aeb84e57c Mon Sep 17 00:00:00 2001 From: matteo-cristino Date: Wed, 18 Oct 2023 13:37:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(zencode):=20=F0=9F=90=9B=20deprecate=20rule?= =?UTF-8?q?=20caller=20restroom-mw=20in=20favour=20of=20rule=20unknown=20i?= =?UTF-8?q?gnore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also remove rule collision ignore since it is not valid anymore --- src/lua/zencode.lua | 6 +----- test/zencode/rules.bats | 15 --------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/lua/zencode.lua b/src/lua/zencode.lua index 6feabad37..14c773924 100644 --- a/src/lua/zencode.lua +++ b/src/lua/zencode.lua @@ -269,13 +269,9 @@ function ZEN:begin(new_heap) CONF.parser.strict_match = false return true end, - ['collision ignore'] = function () - CONF.heap.check_collision = false - return true - end, ['caller restroom-mw'] = function() + warn("DEPRECATED:\nRule caller restroom-mw\nuse instead\nRule unknown ignore") CONF.parser.strict_match = false - CONF.heap.check_collision = false return true end, ['set'] = function (conf, value) diff --git a/test/zencode/rules.bats b/test/zencode/rules.bats index e0bc8d797..8759c7eb8 100644 --- a/test/zencode/rules.bats +++ b/test/zencode/rules.bats @@ -170,21 +170,6 @@ EOF assert_output '{"result":"test_passed"}' } -# --- caller restroom-mw --- # -@test "caller restroom-mw" { - cat <