Remove unused ifdefs and prints.