Skip to content

Commit 175ef2c

Browse files
author
jantje
committed
remove redundant LIBRARY_PATH_SUFFIX declarations
1 parent 3869eb5 commit 175ef2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

io.sloeber.core/src/io/sloeber/core/api/Defaults.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package io.sloeber.core.api;
22

3+
import static io.sloeber.core.common.Const.*;
4+
35
import org.apache.commons.lang.SystemUtils;
46
import org.eclipse.core.runtime.IPath;
57
import org.eclipse.core.runtime.Path;
68

7-
import io.sloeber.core.common.Const;
8-
99
@SuppressWarnings("nls")
1010
public class Defaults {
1111
public static final String EXAMPLE_PACKAGE = "examples_Arduino_1_8_10.zip";
@@ -17,7 +17,6 @@ public class Defaults {
1717
public static final String[] DEFAULT_INSTALLED_LIBRARIES = new String[] { "Ethernet", "Firmata", "GSM", "Keyboard",
1818
"LiquidCrystal", "Mouse", "SD", "Servo", "Stepper", "TFT", "WiFi", "CapacitiveSensor" };
1919
public static final String DEFAULT = "Default";
20-
private static final String LIBRARY_PATH_SUFFIX = "libraries";
2120

2221
public static final boolean updateJsonFiles = true;
2322
public static final boolean useBonjour=true;
@@ -46,7 +45,7 @@ public static String getPrivateHardwarePath() {
4645
if(SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS ) {
4746
homPath=homPath.append("Documents");
4847
}
49-
return homPath.append("Arduino").append(Const.ARDUINO_HARDWARE_FOLDER_NAME).toString();
48+
return homPath.append("Arduino").append(ARDUINO_HARDWARE_FOLDER_NAME).toString();
5049
}
5150

5251
public static String getDefaultUploadProtocol() {

io.sloeber.core/src/io/sloeber/core/common/ConfigurationPreferences.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.sloeber.core.common;
22

3+
import static io.sloeber.core.common.Const.*;
4+
35
import java.io.File;
46
import java.net.NetworkInterface;
57
import java.net.SocketException;
@@ -45,7 +47,6 @@ public class ConfigurationPreferences {
4547
+ KEY_MANAGER_ARDUINO_LIBRARY_JSON_URL;
4648
// preference nodes
4749
private static final String NODE_ARDUINO = Activator.NODE_ARDUINO;
48-
private static final String LIBRARY_PATH_SUFFIX = "libraries"; //$NON-NLS-1$
4950
private static final String PACKAGES_FOLDER_NAME = "packages"; //$NON-NLS-1$
5051

5152
private static String systemHash = "no hash generated"; //$NON-NLS-1$

0 commit comments

Comments
 (0)