remove unused code

This commit is contained in:
Alan Hamlett 2015-09-26 16:55:50 -07:00
parent 1984fe4228
commit 3745a93be4

View file

@ -29,8 +29,6 @@ class PythonParser(TokenParser):
def _process_token(self, token, content): def _process_token(self, token, content):
if self.partial(token) == 'Namespace': if self.partial(token) == 'Namespace':
self._process_namespace(token, content) self._process_namespace(token, content)
elif self.partial(token) == 'Names':
self._process_name(token, content)
elif self.partial(token) == 'Word': elif self.partial(token) == 'Word':
self._process_word(token, content) self._process_word(token, content)
elif self.partial(token) == 'Operator': elif self.partial(token) == 'Operator':
@ -51,22 +49,6 @@ class PythonParser(TokenParser):
else: else:
self._process_import(token, content) self._process_import(token, content)
def _process_name(self, token, content):
if self.state is not None:
if self.nonpackage:
self.nonpackage = False
else:
if self.state == 'from':
self.append(content, truncate=True, truncate_to=1)
if self.state == 'from-2' and content != 'import':
self.append(content, truncate=True, truncate_to=1)
elif self.state == 'import':
self.append(content, truncate=True, truncate_to=1)
elif self.state == 'import-2':
self.append(content, truncate=True, truncate_to=1)
else:
self.state = None
def _process_word(self, token, content): def _process_word(self, token, content):
if self.state is not None: if self.state is not None:
if self.nonpackage: if self.nonpackage: