Remove unused external functions