cmake: remove unused code