remove unused function (checklibs)