Skip to content

Commit 915a888

Browse files
committed
Remove two unused methods
1 parent 59b8a4a commit 915a888

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/ContributionsFragment.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -382,36 +382,6 @@ private void showDetail(int i) {
382382
mediaDetailPagerFragment.showImage(i);
383383
}
384384

385-
/**
386-
* Retry upload when it is failed
387-
* @param i position of upload which will be retried
388-
*/
389-
public void retryUpload(int i) {
390-
allContributions.moveToPosition(i);
391-
Contribution c = contributionDao.fromCursor(allContributions);
392-
if (c.getState() == STATE_FAILED) {
393-
uploadService.queue(UploadService.ACTION_UPLOAD_FILE, c);
394-
Timber.d("Restarting for %s", c.toString());
395-
} else {
396-
Timber.d("Skipping re-upload for non-failed %s", c.toString());
397-
}
398-
}
399-
400-
/**
401-
* Delete a failed upload attempt
402-
* @param i position of upload attempt which will be deteled
403-
*/
404-
public void deleteUpload(int i) {
405-
allContributions.moveToPosition(i);
406-
Contribution c = contributionDao.fromCursor(allContributions);
407-
if (c.getState() == STATE_FAILED) {
408-
Timber.d("Deleting failed contrib %s", c.toString());
409-
contributionDao.delete(c);
410-
} else {
411-
Timber.d("Skipping deletion for non-failed contrib %s", c.toString());
412-
}
413-
}
414-
415385
@Override
416386
public void refreshSource() {
417387
getActivity().getSupportLoaderManager().restartLoader(0, null, this);

0 commit comments

Comments
 (0)