Skip to content

Commit

Permalink
that was already in DebugCommand.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Oct 16, 2024
1 parent a1362c1 commit 2640353
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.data.repo

import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigManager
import at.hannibal2.skyhanni.events.DebugDataCollectEvent
import at.hannibal2.skyhanni.events.NeuRepositoryReloadEvent
import at.hannibal2.skyhanni.events.RepositoryReloadEvent
import at.hannibal2.skyhanni.test.command.ErrorManager
Expand Down Expand Up @@ -229,37 +228,6 @@ class RepoManager(private val configLocation: File) {
return currentCommitJSON?.get("sha")?.asString
}

@SubscribeEvent
fun onDebugDataCollect(event: DebugDataCollectEvent) {
event.title("Repo Status")

if (unsuccessfulConstants.isEmpty() && successfulConstants.isNotEmpty()) {
event.addIrrelevant {
add("Repo working fine")
if (usingBackupRepo) {
add("Using backup repo")
}
}
return
}

event.addData {
add("Using Backup Repo: $usingBackupRepo")

add("Successful Constants (${successfulConstants.size}):")

add("Unsuccessful Constants (${unsuccessfulConstants.size}):")

for ((i, constant) in unsuccessfulConstants.withIndex()) {
add(" - $constant")
if (i == 5) {
add("...")
break
}
}
}
}

fun displayRepoStatus(joinEvent: Boolean) {
if (joinEvent) {
if (unsuccessfulConstants.isNotEmpty()) {
Expand Down

0 comments on commit 2640353

Please sign in to comment.