Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 8ee737f

Browse files
committed
chore: Remove dead code and add todos at places where things have to be fixed
1 parent 78a5e14 commit 8ee737f

File tree

280 files changed

+1003
-1999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+1003
-1999
lines changed

build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ buildscript {
1313

1414
plugins {
1515
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.17.0"
16-
// id("io.freefair.aspectj.post-compile-weaving") version "8.13.1"
1716
java
1817
}
1918

@@ -30,17 +29,11 @@ allprojects {
3029
}
3130

3231
apply(plugin = "java")
33-
// apply(plugin = "io.freefair.aspectj.post-compile-weaving")
3432

3533
dependencies {
36-
// implementation(platform("org.springframework.boot:spring-boot-dependencies:3.4.4"))
37-
// implementation(platform("io.ktor:ktor-bom:3.0.3"))
38-
// implementation(platform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:2025.4.10"))
39-
4034
implementation(platform(project(":surf-cloud-bom")))
4135

4236
compileOnly("org.springframework.boot:spring-boot-configuration-processor:3.5.3")
43-
// "kapt"("org.springframework.boot:spring-boot-configuration-processor:3.4.3")
4437

4538
testImplementation(kotlin("test"))
4639
}

buildSrc/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@ repositories {
88
}
99

1010
dependencies {
11-
// val kotlinVersion = "2.1.0"
12-
// val dokkaVersion = "2.0.0-Beta"
13-
1411
implementation("org.springframework.boot:org.springframework.boot.gradle.plugin:3.5.3")
15-
// implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
16-
// implementation("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
17-
// implementation("org.jetbrains.kotlin:kotlin-lombok:$kotlinVersion")
18-
// implementation("org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion")
19-
// implementation("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
20-
// implementation("org.hibernate.build:gradle-maven-publish-auth:3.0.4")
21-
// compileOnly("com.gradleup.shadow:shadow-gradle-plugin:8.3.5")
2212
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
@file:Suppress("UnstableApiUsage")
22

3-
43
plugins {
54
java
65
}
76

8-
9-
107
repositories {
118
mavenCentral()
129
}
@@ -16,7 +13,5 @@ dependencies {
1613
implementation(platform("io.ktor:ktor-bom:3.2.1"))
1714
implementation(platform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:2025.7.8"))
1815

19-
2016
compileOnly("org.springframework.boot:spring-boot-configuration-processor:3.5.3")
21-
// "kapt"("org.springframework.boot:spring-boot-configuration-processor:3.4.3")
2217
}

buildSrc/src/main/kotlin/dokka-convention.gradle.kts

Lines changed: 0 additions & 31 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,18 @@ aide-reflection = "1.3"
44
netty = "4.2.2.Final"
55
netty-tcnative = "2.0.72.Final"
66
datafixerupper = "8.0.16"
7-
#byte-buddy = "1.15.10"
87
exposed = "0.61.0"
98
maven-impl = "4.0.0-rc-2"
109
maven-resolver = "2.0.5"
1110
jline = "3.30.4"
1211
brigadier = "1.3.10"
1312
terminalconsoleappender = "1.3.0"
1413
bson-kotlinx = "5.4.0"
15-
aspectjweaver = "1.9.22.1"
1614
zstd-jni = "1.5.7-4"
1715
luckperms-api = "5.4"
1816
reactive-streams = "1.0.4"
19-
ehcache = "3.10.8"
2017
kotlin-byte-buf-serializer = "1.0.0"
2118
voicechat-api = "2.5.27"
22-
discord-webhooks = "1.0"
23-
konf = "1.1.2"
24-
2519

2620
[libraries]
2721
velocity-native = { module = "com.velocitypowered:velocity-native", version.ref = "velocity-version" }
@@ -71,7 +65,6 @@ flyway-mysql = { module = "org.flywaydb:flyway-mysql" }
7165
spring-instrument = { module = "org.springframework:spring-instrument" }
7266
kotlin-byte-buf-serializer = { module = "dev.slne.surf:kotlin-byte-buf-serializer", version.ref = "kotlin-byte-buf-serializer" }
7367
voicechat-api = { module = "de.maxhenkel.voicechat:voicechat-api", version.ref = "voicechat-api" }
74-
discord-webhooks = { module = "com.github.BinaryWriter:discord-webhooks", version.ref = "discord-webhooks" }
7568

7669
[plugins]
7770
spring-boot = { id = "org.springframework.boot" }

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/SurfCloudApplication.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import java.lang.annotation.Inherited
2424
@Retention(AnnotationRetention.RUNTIME)
2525
@EnableScheduling
2626
@EnableAsync(mode = AdviceMode.ASPECTJ)
27-
//@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
2827
@EntityScan
2928
@EnableCaching(mode = AdviceMode.ASPECTJ)
3029
@AutoConfigurationPackage

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/TestPacket.kt

Lines changed: 0 additions & 32 deletions
This file was deleted.

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/netty/network/codec/StringIdDispatchCodec.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ package dev.slne.surf.cloud.api.common.netty.network.codec
44

55
import dev.slne.surf.cloud.api.common.netty.protocol.buffer.readUtf
66
import dev.slne.surf.cloud.api.common.netty.protocol.buffer.writeUtf
7-
import dev.slne.surf.cloud.api.common.util.freeze
8-
import dev.slne.surf.cloud.api.common.util.mutableObject2ObjectMapOf
9-
import dev.slne.surf.cloud.api.common.util.mutableObjectListOf
7+
import dev.slne.surf.surfapi.core.api.util.freeze
8+
import dev.slne.surf.surfapi.core.api.util.mutableObject2ObjectMapOf
9+
import dev.slne.surf.surfapi.core.api.util.mutableObjectListOf
1010
import io.netty.buffer.ByteBuf
1111
import io.netty.handler.codec.DecoderException
1212
import io.netty.handler.codec.EncoderException

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/netty/packet/packet-extension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import dev.slne.surf.cloud.api.common.netty.network.codec.StreamCodec
66
import dev.slne.surf.cloud.api.common.netty.network.codec.StreamDecoder
77
import dev.slne.surf.cloud.api.common.netty.network.codec.StreamMemberEncoder
88
import dev.slne.surf.cloud.api.common.netty.protocol.buffer.SurfByteBuf
9-
import dev.slne.surf.cloud.api.common.util.mutableObject2ObjectMapOf
9+
import dev.slne.surf.surfapi.core.api.util.mutableObject2ObjectMapOf
1010
import io.netty.buffer.ByteBuf
1111
import kotlinx.serialization.InternalSerializationApi
1212
import kotlinx.serialization.serializer

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/player/playtime/Playtime.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ interface Playtime {
176176
* @param since Optional start time to filter playtime.
177177
* @return An [ObjectList] of pairs, each containing a category name and its corresponding playtime duration.
178178
*/
179-
fun topCategories(limit: Int = 5, since: ZonedDateTime? = null): ObjectList<Pair<String, Duration>>
179+
fun topCategories(
180+
limit: Int = 5,
181+
since: ZonedDateTime? = null
182+
): ObjectList<Pair<String, Duration>>
180183

181184
fun writeToByteBuf(buf: ByteBuf)
185+
fun mutableObjectSetOf(): ObjectSet<String>
182186
}

0 commit comments

Comments
 (0)