remove an unused static function from interfaceCommandHandler.cpp