diff --git a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt index 3758bf37fd8..e3b17b90bd0 100644 --- a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt +++ b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt @@ -500,15 +500,6 @@ OLD: KE1 logger.info("Extracting file $srcFilePath") logger.flush() -/* -OLD: KE1 - val context = logger.loggerBase.extractorContextStack - if (!context.empty()) { - logger.warn("Extractor context was not empty. It thought:") - context.clear() - } -*/ - val srcFileRelativePath = PathTransformer.std().fileAsDatabaseString(File(srcFilePath)) val dbSrcFilePath = FileUtil.appendAbsolutePath(dbSrcDir, srcFileRelativePath).toPath() diff --git a/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt b/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt index 08bccf10053..e8edb4cb3f6 100644 --- a/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt +++ b/java/kotlin-extractor2/src/main/kotlin/utils/Logger.kt @@ -113,11 +113,6 @@ data class ExtractorContext( * else will use a Logger that wraps it (and the DiagnosticTrapWriter). */ open class LoggerBase(val diagnosticCounter: DiagnosticCounter) { -/* -OLD: KE1 - val extractorContextStack = Stack() -*/ - private val verbosity: Int init { @@ -325,6 +320,11 @@ OLD: KE1 * Logger is the high-level interface for writint log messages. */ open class Logger(val loggerBase: LoggerBase, val dtw: DiagnosticTrapWriter) { +/* +OLD: KE1 + val extractorContextStack = Stack() +*/ + fun flush() { dtw.flush() loggerBase.flush()