CommandProcessor: delete unused functions

and denote their actually-used counterparts as static