remove unused KotlinParser code
This commit is contained in:
parent
ba47b8ccfc
commit
fcdc60afa1
|
@ -14,7 +14,7 @@ package ${package}
|
||||||
|
|
||||||
import delta.io.*
|
import delta.io.*
|
||||||
import echo.Foxtrot as Golf
|
import echo.Foxtrot as Golf
|
||||||
import hotel
|
import h
|
||||||
|
|
||||||
class MainActivity : AppCompatActivity() {
|
class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
|
@ -456,7 +456,7 @@ class DependenciesTestCase(TestCase):
|
||||||
'bravo.charlie',
|
'bravo.charlie',
|
||||||
'delta.io',
|
'delta.io',
|
||||||
'echo.Foxtrot',
|
'echo.Foxtrot',
|
||||||
'hotel',
|
'h',
|
||||||
],
|
],
|
||||||
expected_language='Kotlin',
|
expected_language='Kotlin',
|
||||||
expected_lines=24,
|
expected_lines=24,
|
||||||
|
|
|
@ -134,25 +134,16 @@ class KotlinParser(TokenParser):
|
||||||
def _format(self, content):
|
def _format(self, content):
|
||||||
content = content.split(u('.'))
|
content = content.split(u('.'))
|
||||||
|
|
||||||
|
if content[-1] == u('*'):
|
||||||
|
content = content[:len(content) - 1]
|
||||||
|
|
||||||
if len(content) == 0:
|
if len(content) == 0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if len(content) == 1:
|
if len(content) == 1:
|
||||||
return content[0]
|
return content[0]
|
||||||
|
|
||||||
if len(content[0]) == 3:
|
return u('.').join(content[:2])
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
class ScalaParser(TokenParser):
|
class ScalaParser(TokenParser):
|
||||||
|
|
Loading…
Reference in New Issue