removed useless function
This commit is contained in:
parent
6d24a08075
commit
4faf4f6c27
|
@ -46,12 +46,10 @@ object InternetTools {
|
|||
client.newCall(request).enqueue(object : Callback {
|
||||
override fun onFailure(call: Call, e: IOException) {
|
||||
toReturn = 0
|
||||
returnVal(toReturn)
|
||||
}
|
||||
|
||||
override fun onResponse(call: Call, response: Response) {
|
||||
toReturn = JSONObject(response.body?.string()!!).getInt(obj)
|
||||
returnVal(toReturn)
|
||||
Log.d("VMResponse", toReturn.toString())
|
||||
}
|
||||
})
|
||||
|
@ -82,10 +80,6 @@ object InternetTools {
|
|||
return toReturn
|
||||
}
|
||||
|
||||
fun returnVal(value: Any): Any {
|
||||
return value
|
||||
}
|
||||
|
||||
fun isUpdateAvailable(): Boolean {
|
||||
val checkUrl = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/manager.json")
|
||||
val remoteVersion = checkUrl.get("versionCode").asInt
|
||||
|
|
Loading…
Reference in New Issue