Skip to content

Commit 9834db0

Browse files
committed
Remove commented code.
1 parent 3e1a64d commit 9834db0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/actions/DownloadExercisesAction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public class DownloadExercisesAction {
3636
private TmcCore tmcCore;
3737
private NBTmcSettings settings;
3838

39+
/**
40+
* Downloads all exercises of the list from TmcServer, unzips and opens them and
41+
* saves the checksums of each Exercise to courseDb.
42+
*/
3943
public DownloadExercisesAction(List<Exercise> exercisesToOpen) {
4044
this.projectMediator = ProjectMediator.getInstance();
4145
this.dialogs = ConvenientDialogDisplayer.getDefault();
@@ -46,9 +50,6 @@ public DownloadExercisesAction(List<Exercise> exercisesToOpen) {
4650
}
4751

4852
public void run() throws TmcCoreException {
49-
// final AggregatingBgTaskListener<TmcProjectInfo> aggregator
50-
// = new AggregatingBgTaskListener<TmcProjectInfo>(exercisesToDownload.size(), whenAllDownloadsFinished);
51-
5253
ProgressHandle exerciseDownload = ProgressHandleFactory.createSystemHandle(
5354
"Downloading " + exercisesToDownload.size() + " exercises.");
5455
exerciseDownload.start();
@@ -105,7 +106,6 @@ public void onFailure(Throwable thrwbl) {
105106
lastAction.finish();
106107
logger.log(Level.INFO, "Failed to download exercise file.", thrwbl);
107108
dialogs.displayError("Failed to download exercises.\n" + ServerErrorHelper.getServerExceptionMsg(thrwbl));
108-
109109
}
110110
}
111111
}

0 commit comments

Comments
 (0)