8066013: (prefs) Unused variable in src/java.prefs/share/classes/java/util/prefs/MacOSXPreferences.java
Summary: Two unused variables in MacOSXPreferences.java were removed
Reviewed-by: cbensen, psandoz, chegar
Contributed-by: steve.drach@oracle.com
--- a/jdk/src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferences.java Wed Jul 29 23:36:51 2015 -0700
+++ b/jdk/src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferences.java Wed Jul 22 14:44:30 2015 -0700
@@ -37,9 +37,6 @@
// true if this node is a child of userRoot or is userRoot
private final boolean isUser;
- // true if this node is userRoot or systemRoot
- private final boolean isRoot;
-
// CF's storage location for this node and its keys
private final MacOSXPreferencesFile file;
@@ -94,7 +91,6 @@
boolean isNew, boolean isRoot, boolean isUser)
{
super(parent, name);
- this.isRoot = isRoot;
if (isRoot)
this.isUser = isUser;
else
@@ -115,7 +111,6 @@
// /one/two/three/four/five/
// The fourth slash is the end of the first three components.
// If there is no fourth slash, the name has fewer than 3 components
- int componentCount = 0;
int pos = -1;
for (int i = 0; i < 4; i++) {
pos = name.indexOf('/', pos+1);