removed useless function

This commit is contained in:
X1nto 2020-07-11 17:42:47 +04:00
parent 6d24a08075
commit 4faf4f6c27
1 changed files with 0 additions and 6 deletions

View File

@ -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