From 600adee5699660b5aa79f5d2c19c07ae8e3864ea Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Wed, 11 Dec 2024 14:28:51 +0100 Subject: [PATCH] Remove unused code --- eb_hooks.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/eb_hooks.py b/eb_hooks.py index cb8e759a7a..f9580b46d0 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -401,18 +401,6 @@ def parse_hook_zen4_module_only(ec, eprefix): ec['modluafooter'] = 'if (not os.getenv("%s")) then LmodError("%s") end' % (env_varname, errmsg) -def pre_fetch_hook(ec, *args, **kwargs): - """Main parse hook: trigger custom functions based on software name.""" - - if ec.name in PRE_FETCH_HOOKS: - PRE_FETCH_HOOKS[ec.name](ec, *args, **kwargs) - - # Always trigger this one, regardless of ec.name - cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR') - if cpu_target == CPU_TARGET_ZEN4: - pre_fetch_hook_ignore_zen4_gcccore1220_error(ec, *args, **kwargs) - - # We do this as early as possible - and remove it all the way in the last step hook (post_testcases_hook) def pre_prepare_hook_ignore_zen4_gcccore1220_error(self, *args, **kwargs): """Set environment variable to ignore the LmodError from parse_hook_zen4_module_only during build phase"""