mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: methodpool: Remove unused check_insert_method function
(Bitbake rev: 4664333e55ffc9d618f2c2f074200923209fd6c4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -56,20 +56,6 @@ def insert_method(modulename, code, fn):
|
|||||||
else:
|
else:
|
||||||
_parsed_fns[name] = modulename
|
_parsed_fns[name] = modulename
|
||||||
|
|
||||||
def check_insert_method(modulename, code, fn):
|
|
||||||
"""
|
|
||||||
Add the code if it wasnt added before. The module
|
|
||||||
name will be used for that
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
@modulename a short name e.g. base.bbclass
|
|
||||||
@code The actual python code
|
|
||||||
@fn The filename from the outer file
|
|
||||||
"""
|
|
||||||
if not modulename in _parsed_methods:
|
|
||||||
return insert_method(modulename, code, fn)
|
|
||||||
_parsed_methods[modulename] = 1
|
|
||||||
|
|
||||||
def parsed_module(modulename):
|
def parsed_module(modulename):
|
||||||
"""
|
"""
|
||||||
Inform me file xyz was parsed
|
Inform me file xyz was parsed
|
||||||
|
|||||||
Reference in New Issue
Block a user