Remove the useless code based on amdefine module