# HG changeset patch # User psandoz # Date 1437601470 25200 # Node ID 6b8f199268713e3a660f9730d870a6a720daaa20 # Parent 1b365849fcfa03bdd11e9dff19eff07e0444a2b1 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 diff -r 1b365849fcfa -r 6b8f19926871 jdk/src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferences.java --- 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);