Skip to content

Commit 5da377b

Browse files
committed
Kotlin: Build: Remove some dead code
1 parent 61a3f86 commit 5da377b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

java/kotlin-extractor/build.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,6 @@ def find_sources(path):
133133
return glob.glob(path + '/**/*.kt', recursive=True) + glob.glob(path + '/**/*.java', recursive=True)
134134

135135

136-
def get_kotlin_lib_folder():
137-
x = run_process([kotlinc, '-version', '-verbose'], capture_output=True)
138-
output = x.stderr.decode(encoding='UTF-8', errors='strict')
139-
m = re.match(
140-
r'.*\nlogging: using Kotlin home directory ([^\n]+)\n.*', output)
141-
if m is None:
142-
raise Exception('Cannot determine kotlinc home directory')
143-
kotlin_home = m.group(1)
144-
print("Kotlin home directory: " + kotlin_home)
145-
return kotlin_home + '/lib'
146-
147-
148-
def get_gradle_lib_folder():
149-
x = run_process(['gradle', 'getHomeDir'], capture_output=True)
150-
output = x.stdout.decode(encoding='UTF-8', errors='strict')
151-
m = re.search(r'(?m)^> Task :getHomeDir\n([^\n]+)$', output)
152-
if m is None:
153-
print("gradle getHomeDir output:\n" + output, file=sys.stderr)
154-
raise Exception('Cannot determine gradle home directory')
155-
gradle_home = m.group(1)
156-
print("Gradle home directory: " + gradle_home)
157-
return gradle_home + '/lib'
158-
159-
160136
def find_jar(path, base):
161137
fn = path + '/' + base + '.jar'
162138
if not os.path.isfile(fn):

0 commit comments

Comments
 (0)