From ba5c285a47d21e18615ce74aa018810c7c3a3ac6 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 2 Jan 2023 21:05:17 +0000 Subject: [PATCH] Remove defunct OpenOSRS key downloader and link Signed-off-by: Graham --- .../org/openrs2/archive/ArchiveModule.kt | 2 -- .../archive/key/OpenOsrsKeyDownloader.kt | 19 ------------------- .../org/openrs2/archive/templates/index.html | 1 - 3 files changed, 22 deletions(-) delete mode 100644 archive/src/main/kotlin/org/openrs2/archive/key/OpenOsrsKeyDownloader.kt diff --git a/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt b/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt index 0536bb5c..a43e7743 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/ArchiveModule.kt @@ -7,7 +7,6 @@ import com.google.inject.Scopes import com.google.inject.multibindings.Multibinder import org.openrs2.archive.key.HdosKeyDownloader import org.openrs2.archive.key.KeyDownloader -import org.openrs2.archive.key.OpenOsrsKeyDownloader import org.openrs2.archive.key.PolarKeyDownloader import org.openrs2.archive.key.RuneLiteKeyDownloader import org.openrs2.archive.name.NameDownloader @@ -47,7 +46,6 @@ public object ArchiveModule : AbstractModule() { val keyBinder = Multibinder.newSetBinder(binder(), KeyDownloader::class.java) keyBinder.addBinding().to(HdosKeyDownloader::class.java) - keyBinder.addBinding().to(OpenOsrsKeyDownloader::class.java) keyBinder.addBinding().to(PolarKeyDownloader::class.java) keyBinder.addBinding().to(RuneLiteKeyDownloader::class.java) diff --git a/archive/src/main/kotlin/org/openrs2/archive/key/OpenOsrsKeyDownloader.kt b/archive/src/main/kotlin/org/openrs2/archive/key/OpenOsrsKeyDownloader.kt deleted file mode 100644 index 8e6cb58f..00000000 --- a/archive/src/main/kotlin/org/openrs2/archive/key/OpenOsrsKeyDownloader.kt +++ /dev/null @@ -1,19 +0,0 @@ -package org.openrs2.archive.key - -import java.net.http.HttpClient -import javax.inject.Inject -import javax.inject.Singleton - -@Singleton -public class OpenOsrsKeyDownloader @Inject constructor( - client: HttpClient, - jsonKeyReader: JsonKeyReader -) : JsonKeyDownloader(KeySource.OPENOSRS, client, jsonKeyReader) { - override suspend fun getMissingUrls(seenUrls: Set): Set { - return setOf(ENDPOINT) - } - - private companion object { - private const val ENDPOINT = "https://xtea.openosrs.dev/get" - } -} diff --git a/archive/src/main/resources/org/openrs2/archive/templates/index.html b/archive/src/main/resources/org/openrs2/archive/templates/index.html index df08c796..a34b42bd 100644 --- a/archive/src/main/resources/org/openrs2/archive/templates/index.html +++ b/archive/src/main/resources/org/openrs2/archive/templates/index.html @@ -53,7 +53,6 @@
  • Displee's archive
  • Greg's archive
  • HDOS
  • -
  • OpenOSRS
  • Polar's archive