Skip to content

Commit 3b2b884

Browse files
authored
Merge pull request #9683 from igfoo/igfoo/getDiagnosticLocation
Kotlin: Remove unused function getDiagnosticLocation
2 parents 3248f7b + 1713c41 commit 3b2b884

File tree

1 file changed

+0
-14
lines changed
  • java/kotlin-extractor/src/main/kotlin/utils

1 file changed

+0
-14
lines changed

java/kotlin-extractor/src/main/kotlin/utils/Logger.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,20 +207,6 @@ open class LoggerBase(val logCounter: LogCounter) {
207207
}
208208

209209
open class Logger(val loggerBase: LoggerBase, open val tw: TrapWriter) {
210-
private fun getDiagnosticLocation(): String? {
211-
val st = Exception().stackTrace
212-
for(x in st) {
213-
when(x.className) {
214-
"com.github.codeql.Logger",
215-
"com.github.codeql.FileLogger" -> {}
216-
else -> {
217-
return x.toString()
218-
}
219-
}
220-
}
221-
return null
222-
}
223-
224210
fun flush() {
225211
tw.flush()
226212
loggerBase.flush()

0 commit comments

Comments
 (0)