Remove unused variables

This commit is contained in:
Naoki Takezoe
2018-06-11 19:18:26 +09:00
parent a4cebcc3ac
commit 99f228bb94

View File

@@ -1,8 +1,7 @@
package gitbucket.core.plugin
import org.json4s._
import gitbucket.core.util.Directory._
import org.apache.commons.io.{FileUtils, IOUtils}
import org.apache.commons.io.IOUtils
object PluginRepository {
implicit val formats = DefaultFormats
@@ -11,9 +10,6 @@ object PluginRepository {
org.json4s.jackson.JsonMethods.parse(json).extract[Seq[PluginMetadata]]
}
lazy val LocalRepositoryDir = new java.io.File(PluginHome, ".repository")
lazy val LocalRepositoryIndexFile = new java.io.File(LocalRepositoryDir, "plugins.json")
def getPlugins(): Seq[PluginMetadata] = {
val url = new java.net.URL("https://plugins.gitbucket-community.org/releases/plugins.json")
val str = IOUtils.toString(url, "UTF-8")