remove unused code from CommandLine