mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-05 14:36:05 +02:00
Remove unused variables
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user