Improve: remove unused method

This commit is contained in:
zt515 2017-11-03 21:58:02 +08:00
parent 39d581cd7c
commit 043733a353
2 changed files with 0 additions and 29 deletions

View File

@ -72,32 +72,4 @@ class SetupActivity : AppCompatActivity() {
}
})
}
// private fun randomPackageList(): Array<String> {
// val list = mutableListOf<String>()
// val pm = NeoPackageManager.get()
//
// val sourceFiles = NeoPackageManagerUtils.detectSourceFiles()
// pm.clearPackages()
// for (index in sourceFiles.indices) {
// pm.refreshPackageList(sourceFiles[index], false)
// }
//
// val limit = 20
// val packageNames = pm.packages.keys
// val packageCount = packageNames.size
// val random = Random()
//
// var i = 0
// while (i < limit) {
// val randomIndex = Math.abs(random.nextInt()) % packageCount
// val packageName = packageNames.elementAt(randomIndex)
// if (packageName.startsWith("lib") || packageName.endsWith("-dev")) {
// continue
// }
// list.add(packageName)
// ++i
// }
// return list.toTypedArray()
// }
}

View File

@ -295,7 +295,6 @@ class NeoTermActivity : AppCompatActivity(), ServiceConnection, SharedPreference
if (!isRecreating()) {
if (BaseFileInstaller.needSetup()) {
val intent = Intent(this, SetupActivity::class.java)
intent.putExtra("setup", true)
startActivityForResult(intent, REQUEST_SETUP)
return
}