remove unused KotlinParser code
This commit is contained in:
parent
ba47b8ccfc
commit
fcdc60afa1
3 changed files with 6 additions and 15 deletions
|
@ -14,7 +14,7 @@ package ${package}
|
|||
|
||||
import delta.io.*
|
||||
import echo.Foxtrot as Golf
|
||||
import hotel
|
||||
import h
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
|
|
|
@ -456,7 +456,7 @@ class DependenciesTestCase(TestCase):
|
|||
'bravo.charlie',
|
||||
'delta.io',
|
||||
'echo.Foxtrot',
|
||||
'hotel',
|
||||
'h',
|
||||
],
|
||||
expected_language='Kotlin',
|
||||
expected_lines=24,
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue