Remove unused getCommandType

Change-Id: I76c9ea0740223b601440ca7c7122b814e777fca3