Remove unused signals and slots.