remove unused KotlinParser code

This commit is contained in:
Alan Hamlett 2018-03-13 09:36:51 -07:00
parent ba47b8ccfc
commit fcdc60afa1
3 changed files with 6 additions and 15 deletions

View file

@ -134,25 +134,16 @@ class KotlinParser(TokenParser):
def _format(self, content):
content = content.split(u('.'))
if content[-1] == u('*'):
content = content[:len(content) - 1]
if len(content) == 0:
return None
if len(content) == 1:
return content[0]
if len(content[0]) == 3:
content = content[1:]
if content[-1] == u('*'):
content = content[:len(content) - 1]
if len(content) == 0:
return None
elif len(content) == 1:
content = content[0]
elif len(content) > 1:
content = u('.').join(content[:2])
return content
return u('.').join(content[:2])
class ScalaParser(TokenParser):