Skip to content

Commit 6b4c018

Browse files
committed
2 parents 65af0ef + 3d47995 commit 6b4c018

File tree

8 files changed

+3
-28
lines changed

8 files changed

+3
-28
lines changed

app/src/processing/app/Sketch.java

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import cc.arduino.CompilerProgressListener;
2828
import cc.arduino.UploaderUtils;
2929
import cc.arduino.packages.Uploader;
30-
import org.apache.commons.codec.digest.DigestUtils;
3130
import processing.app.debug.RunnerException;
3231
import processing.app.forms.PasswordAuthorizationDialog;
3332
import processing.app.helpers.FileUtils;

arduino-core/src/cc/arduino/packages/uploaders/GenericNetworkUploader.java

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
import java.io.File;
3939
import java.util.List;
4040

41-
import static processing.app.I18n.tr;
42-
4341
public class GenericNetworkUploader extends Uploader {
4442

4543
private final BoardPort port;

arduino-core/src/cc/arduino/utils/network/FileDownloader.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ private void downloadFile() throws InterruptedException {
207207
file.write(buffer, 0, read);
208208
setDownloaded(getDownloaded() + read);
209209

210-
if (Thread.interrupted())
210+
if (Thread.interrupted()) {
211+
file.close();
211212
throw new InterruptedException();
213+
}
212214
}
213215

214216
if (getDownloadSize() != null) {

arduino-core/src/processing/app/I18n.java

-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ static protected void init(String language) throws MissingResourceException {
7070
PROMPT_BROWSE = tr("Browse");
7171
}
7272

73-
@Deprecated
74-
public static String _(String s) {
75-
return tr(s);
76-
}
77-
7873
public static String tr(String s) {
7974
String res;
8075
try {

arduino-core/src/processing/app/SketchCode.java

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.io.IOException;
2929
import java.nio.file.Files;
3030
import java.nio.file.Path;
31-
import java.nio.file.Paths;
3231
import java.util.Arrays;
3332
import java.util.List;
3433
import java.util.stream.Collectors;

arduino-core/src/processing/app/linux/Platform.java

-8
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@
2222

2323
package processing.app.linux;
2424

25-
import org.apache.commons.exec.CommandLine;
26-
import org.apache.commons.exec.DefaultExecutor;
27-
import org.apache.commons.exec.Executor;
28-
import org.apache.commons.exec.PumpStreamHandler;
2925
import processing.app.PreferencesData;
30-
import processing.app.debug.TargetPackage;
3126
import processing.app.legacy.PConstants;
3227

33-
import java.io.ByteArrayOutputStream;
3428
import java.io.File;
35-
import java.io.IOException;
36-
import java.util.Map;
3729

3830

3931
/**

arduino-core/src/processing/app/macosx/Platform.java

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.apache.commons.exec.Executor;
3030
import org.apache.commons.exec.PumpStreamHandler;
3131
import org.apache.commons.lang3.StringUtils;
32-
import processing.app.debug.TargetPackage;
3332
import processing.app.legacy.PApplet;
3433
import processing.app.legacy.PConstants;
3534

@@ -41,7 +40,6 @@
4140
import java.net.URI;
4241
import java.util.LinkedList;
4342
import java.util.List;
44-
import java.util.Map;
4543

4644

4745
/**

arduino-core/src/processing/app/windows/Platform.java

-8
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,16 @@
2424

2525
import cc.arduino.os.windows.FolderFinderInWindowsEnvVar;
2626
import cc.arduino.os.windows.FolderFinderInWindowsRegistry;
27-
import org.apache.commons.exec.CommandLine;
28-
import org.apache.commons.exec.DefaultExecutor;
29-
import org.apache.commons.exec.Executor;
30-
import org.apache.commons.exec.PumpStreamHandler;
31-
import processing.app.BaseNoGui;
32-
import processing.app.debug.TargetPackage;
3327
import processing.app.legacy.PApplet;
3428
import processing.app.legacy.PConstants;
3529

36-
import java.io.ByteArrayOutputStream;
3730
import java.io.File;
3831
import java.io.IOException;
3932
import java.nio.file.Files;
4033
import java.nio.file.Path;
4134
import java.nio.file.Paths;
4235
import java.util.LinkedList;
4336
import java.util.List;
44-
import java.util.Map;
4537

4638

4739
public class Platform extends processing.app.Platform {

0 commit comments

Comments
 (0)