remove some unused static functions/variables