8066013: (prefs) Unused variable in src/java.prefs/share/classes/java/util/prefs/MacOSXPreferences.java
Two unused variables in MacOSXPreferences.java were removed Reviewed-by: cbensen, psandoz, chegar
This commit is contained in:
parent
7e1ed8f785
commit
31ffde0567
@ -37,9 +37,6 @@ class MacOSXPreferences extends AbstractPreferences {
|
|||||||
// true if this node is a child of userRoot or is userRoot
|
// true if this node is a child of userRoot or is userRoot
|
||||||
private final boolean isUser;
|
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
|
// CF's storage location for this node and its keys
|
||||||
private final MacOSXPreferencesFile file;
|
private final MacOSXPreferencesFile file;
|
||||||
|
|
||||||
@ -94,7 +91,6 @@ class MacOSXPreferences extends AbstractPreferences {
|
|||||||
boolean isNew, boolean isRoot, boolean isUser)
|
boolean isNew, boolean isRoot, boolean isUser)
|
||||||
{
|
{
|
||||||
super(parent, name);
|
super(parent, name);
|
||||||
this.isRoot = isRoot;
|
|
||||||
if (isRoot)
|
if (isRoot)
|
||||||
this.isUser = isUser;
|
this.isUser = isUser;
|
||||||
else
|
else
|
||||||
@ -115,7 +111,6 @@ class MacOSXPreferences extends AbstractPreferences {
|
|||||||
// /one/two/three/four/five/
|
// /one/two/three/four/five/
|
||||||
// The fourth slash is the end of the first three components.
|
// The fourth slash is the end of the first three components.
|
||||||
// If there is no fourth slash, the name has fewer than 3 components
|
// If there is no fourth slash, the name has fewer than 3 components
|
||||||
int componentCount = 0;
|
|
||||||
int pos = -1;
|
int pos = -1;
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
pos = name.indexOf('/', pos+1);
|
pos = name.indexOf('/', pos+1);
|
||||||
|
Loading…
Reference in New Issue
Block a user