remove unused code

This commit is contained in:
Alan Hamlett 2015-09-26 18:42:18 -07:00
parent 3745a93be4
commit f1e08d9e85

View file

@ -29,8 +29,6 @@ class PythonParser(TokenParser):
def _process_token(self, token, content):
if self.partial(token) == 'Namespace':
self._process_namespace(token, content)
elif self.partial(token) == 'Word':
self._process_word(token, content)
elif self.partial(token) == 'Operator':
self._process_operator(token, content)
elif self.partial(token) == 'Punctuation':
@ -49,22 +47,6 @@ class PythonParser(TokenParser):
else:
self._process_import(token, content)
def _process_word(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_operator(self, token, content):
if self.state is not None:
if content == '.':