ruby: remove unused functions, add exception for header-suffix