]> git.e2factory.org Git - e2factory.git/commitdiff
collect_project: remove_source_to_result_fn() to undo registration
authorTobias Ulmer <tu@emlix.com>
Wed, 26 Jun 2019 15:02:19 +0000 (17:02 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 26 Jun 2019 15:02:19 +0000 (17:02 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/collect_project.lua

index a570e01547fd63117307f65ea804882c4a3b0b4f..3c88748e4699bc1dbe4d0f374ba4cc90e6189a0a 100644 (file)
@@ -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)