From faa9d2422eb0ad919a173d6cf6f9d90ebc8f7a06 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 17 Dec 2018 11:22:53 -0800 Subject: [PATCH] No need for a separate method. --- .../threerings/getdown/launcher/Getdown.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java index 1b04122..730882c 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -676,9 +676,11 @@ public abstract class Getdown extends Thread // download the patch files... setStep(Step.DOWNLOAD); download(list); - - // rename the patch files... - install(list); + + // install the patch files (renaming them from _new) + for (Resource rsrc : list) { + rsrc.install(true); + } // and apply them... setStep(Step.PATCH); @@ -713,17 +715,6 @@ public abstract class Getdown extends Thread readConfig(false); } - /** - * Installs resources - */ - private void install (List resources) - throws IOException - { - for (Resource rsrc : resources) { - rsrc.install(true); - } - } - /** * Called if the application is determined to require resource downloads. */