Skip to content

Commit

Permalink
remove fastutil as it has weird behavior and its not used
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Sep 13, 2024
1 parent 7c96ee8 commit 7cea1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion server/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ dependencies {
implementation("org.java-websocket:Java-WebSocket:1.+")
implementation("com.melloware:jintellitype:1.+")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
implementation("it.unimi.dsi:fastutil:8.5.12")

// Jitpack
implementation("com.github.SlimeVR:oscquery-kt:566a0cba58")
Expand Down
6 changes: 2 additions & 4 deletions server/core/src/main/java/dev/slimevr/status/StatusSystem.kt
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package dev.slimevr.status

import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
import it.unimi.dsi.fastutil.ints.IntOpenHashSet
import solarxr_protocol.rpc.StatusDataUnion
import solarxr_protocol.rpc.StatusMessageT
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.atomic.AtomicInteger

class StatusSystem {
private val listeners: MutableList<StatusListener> = CopyOnWriteArrayList()
private val statuses: MutableMap<Int, StatusDataUnion> = Int2ObjectOpenHashMap()
private val prioritizedStatuses: MutableSet<Int> = IntOpenHashSet()
private val statuses: MutableMap<Int, StatusDataUnion> = HashMap()
private val prioritizedStatuses: MutableSet<Int> = HashSet()
private val idCounter = AtomicInteger(1)

fun addListener(listener: StatusListener) {
Expand Down

0 comments on commit 7cea1c7

Please sign in to comment.