remove unneeded function declarations