Skip to content

Commit 9cc042a

Browse files
committed
[plugin] remove unused func
1 parent 4b5fec2 commit 9cc042a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

component_magnet/src/main/java/me/jbusdriver/component/magnet/mvp/presenter/MagnetListPresenterImpl.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ class MagnetListPresenterImpl(private val magnetLoaderKey: String, private val k
3232
val cache = Flowable.concat(CacheLoader.justLru(cacheKey), CacheLoader.justDisk(cacheKey)).firstElement().map { GSON.fromJson<List<Magnet>>(it) }.toFlowable()
3333
val loaderFormNet = Flowable.fromCallable {
3434
// 插件 Phantom Service 代理对象
35-
Main_Worker.schedule {
36-
PhantomServiceManager.getService(MagnetPluginHelper.MagnetService)
37-
val service = PhantomServiceManager.getService(MagnetPluginHelper.PluginMagnetPackage, MagnetPluginHelper.MagnetService)
38-
val pluginInfo = PhantomCore.getInstance().findPluginInfoByPackageName(MagnetPluginHelper.PluginMagnetPackage)
39-
?: error("not service info")
40-
val pluginContext = PluginContext(this.mView?.viewContext as Activity, pluginInfo).createContext()
41-
service.call("pluginToast", pluginContext)
42-
}
4335
return@fromCallable try {
4436
GSON.fromJson<List<Magnet>>(MagnetPluginHelper.getMagnets(magnetLoaderKey, keyword, page))
4537
} catch (e: Exception) {

0 commit comments

Comments
 (0)