[DEV] remove dead idea

This commit is contained in:
Edouard DUPIN 2022-01-16 22:35:16 +01:00
parent 28cd4ef882
commit 98a474d49c

View File

@ -1829,15 +1829,11 @@ def exist(target, name):
## @param[in] name (string) Name of the module ## @param[in] name (string) Name of the module
## @return (handle) @ref Module handle ## @return (handle) @ref Module handle
## ##
def load_module(target, name_reg): def load_module(target, nameg):
global __module_list global __module_list
#debug.warning("Load module: " + str(len(__module_list)) + " => " + str(__module_list)); #debug.warning("Load module: " + str(len(__module_list)) + " => " + str(__module_list));
for mod in __module_list: for mod in __module_list:
return_check = bool(re.match(name_reg, mod[0])); if mod[0] == name :
debug.warning("check load: " + name_reg + " => " + mod[0]);
#if mod[0] == name :
if return_check:
name = mod[0]
if mod[2]== False: if mod[2]== False:
# read GLD file # read GLD file
the_module = moduleGLD.load_module_from_GLD(target, mod[0], os.path.dirname(mod[1]), mod[1]) the_module = moduleGLD.load_module_from_GLD(target, mod[0], os.path.dirname(mod[1]), mod[1])