[KLIB tool] Drop unused blind flag in "remove" command
^KT-62340
This commit is contained in:
committed by
Space Team
parent
77b574bd0d
commit
82115c1f26
@@ -92,18 +92,15 @@ internal class KlibToolCommand(private val args: KlibToolArguments) {
|
||||
library.libraryFile.unpackZippedKonanLibraryTo(installLibDir)
|
||||
}
|
||||
|
||||
fun remove(blind: Boolean = false) {
|
||||
fun remove() {
|
||||
klibRepoDeprecationWarning.logOnceIfNecessary()
|
||||
|
||||
if (!repository.exists) logError("Repository does not exist: $repository")
|
||||
|
||||
val library = try {
|
||||
val library = libraryInRepo(repository, args.libraryNameOrPath)
|
||||
if (blind) logWarning("Removing The previously installed ${args.libraryNameOrPath} from $repository")
|
||||
library
|
||||
|
||||
libraryInRepo(repository, args.libraryNameOrPath)
|
||||
} catch (e: Throwable) {
|
||||
if (!blind) println(e.message)
|
||||
println(e.message)
|
||||
null
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user