if is no more ncessary
@@ -116,10 +116,6 @@ class CommandTextualGeneric(Command):
sub_command_start_string = re.escape(self.__command_string[:self._max_index_from_beginning])
re_sub_command_string = sub_command_start_string
if self._max_index_from_end != 0:
- cmd_len = len(self.__command_string)
- if self._max_index_from_end >= cmd_len:
- sub_command_finish_string = re.escape(self.__command_string)
- else:
sub_command_finish_string = re.escape(self.__command_string[-self._max_index_from_end:])
re_sub_command_string = sub_command_finish_string
if sub_command_finish_string and sub_command_start_string:
