From 7e063c941f203f52c68ef6bae710f334eecd73ec Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 26 Jun 2019 17:02:19 +0200 Subject: [PATCH] collect_project: remove_source_to_result_fn() to undo registration Signed-off-by: Tobias Ulmer --- plugins/collect_project.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/collect_project.lua b/plugins/collect_project.lua index a570e01..3c88748 100644 --- a/plugins/collect_project.lua +++ b/plugins/collect_project.lua @@ -396,6 +396,12 @@ function collect_project_class.static:add_source_to_result_fn(typ, func) _source_to_result_functions[typ] = func end +function collect_project_class.static:remove_source_to_result_fn(typ, func) + assertIsStringN(typ) + assertIsFunction(func) + _source_to_result_functions[typ] = nil +end + function collect_project_class:initialize(rawres) assertIsTable(rawres) assertNotNil(rawres.collect_project) -- 2.39.5