From 91d4e46c892fb29a1c3a6ff8e4b05b4f1a4c2c33 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 10 Feb 2021 19:42:21 +0000 Subject: [PATCH] Rename GroupKey to Key Signed-off-by: Graham --- .../kotlin/org/openrs2/archive/cache/CacheExporter.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt index be5a28a653..9874d693b0 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt @@ -25,7 +25,7 @@ public class CacheExporter @Inject constructor( val name: String? ) - public data class GroupKey( + public data class Key( val archive: Int, val group: Int, val nameHash: Int?, @@ -129,7 +129,7 @@ public class CacheExporter @Inject constructor( } } - public suspend fun exportKeys(id: Long): List { + public suspend fun exportKeys(id: Long): List { return database.execute { connection -> connection.prepareStatement( """ @@ -158,7 +158,7 @@ public class CacheExporter @Inject constructor( stmt.setLong(1, id) stmt.executeQuery().use { rows -> - val keys = mutableListOf() + val keys = mutableListOf() while (rows.next()) { val archive = rows.getInt(1) @@ -175,7 +175,7 @@ public class CacheExporter @Inject constructor( val k3 = rows.getInt(8) val mapSquare = getMapSquare(name) - keys += GroupKey(archive, group, nameHash, name, mapSquare, XteaKey(k0, k1, k2, k3)) + keys += Key(archive, group, nameHash, name, mapSquare, XteaKey(k0, k1, k2, k3)) } keys