changeset 12481:ab01ad84c373

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
author psandoz
date Wed, 22 Jul 2015 14:44:30 -0700
parents 2cc2d68886db
children 4e3135fac8cc
files src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferences.java
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferences.java	Wed Jul 29 23:36:51 2015 -0700
+++ b/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);