Remove unnecessary functions from erlang module