fixed unused warning in generated module if no deleted hooks are set