remove disturbing function definitions which are not used inside library.