From 694b77294cea10fc4030f177e24c781a73d23baa Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Thu, 15 Nov 2018 23:46:25 +0900 Subject: [PATCH] Remove deprecated methods --- .../gitbucket/core/plugin/PluginRegistry.scala | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala b/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala index c37f1aede..ebe93a64f 100644 --- a/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala +++ b/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala @@ -70,23 +70,10 @@ class PluginRegistry { images.put(id, encoded) } - @deprecated("Use addImage(id: String, bytes: Array[Byte]) instead", "3.4.0") - def addImage(id: String, in: InputStream): Unit = { - val bytes = using(in) { in => - val bytes = new Array[Byte](in.available) - in.read(bytes) - bytes - } - addImage(id, bytes) - } - def getImage(id: String): String = images.get(id) def addController(path: String, controller: ControllerBase): Unit = controllers.add((controller, path)) - @deprecated("Use addController(path: String, controller: ControllerBase) instead", "3.4.0") - def addController(controller: ControllerBase, path: String): Unit = addController(path, controller) - def getControllers(): Seq[(ControllerBase, String)] = controllers.asScala.toSeq def addJavaScript(path: String, script: String): Unit =