mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Remove unused function
This commit is contained in:
parent
bf795ab7a5
commit
0b7becb161
@ -134,28 +134,6 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
|
|||||||
itemList.remove(app);
|
itemList.remove(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void abortPendingRequests() {
|
|
||||||
HashMap<ImageView, Future> tempMap;
|
|
||||||
|
|
||||||
synchronized (pendingIonRequests) {
|
|
||||||
// Copy the pending requests under a lock
|
|
||||||
tempMap = new HashMap<ImageView, Future>(pendingIonRequests);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (Future f : tempMap.values()) {
|
|
||||||
if (!f.isCancelled() && !f.isDone()) {
|
|
||||||
f.cancel(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
synchronized (pendingIonRequests) {
|
|
||||||
// Remove cancelled requests
|
|
||||||
for (ImageView v : tempMap.keySet()) {
|
|
||||||
pendingIonRequests.remove(v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Handle pruning of bitmap cache
|
// TODO: Handle pruning of bitmap cache
|
||||||
private void populateBitmapCache(UUID uuid, int appId, Bitmap bitmap) {
|
private void populateBitmapCache(UUID uuid, int appId, Bitmap bitmap) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user