public void deleteSubKey(String name) { if (subKeys != null) { int i = name.indexOf('.'); if (i == -1) { subKeys.remove(name); } else { Key subKey = (Key) subKeys.get(name.substring(0, i)); if (subKey != null) { subKey.deleteSubKey(name.substring(i + 1)); } } } }
private static void _deleteKey(String keyName) { root.deleteSubKey(keyName); }