Skip to content

Commit a9a490b

Browse files
committed
Removed unsuccessful fix for #1982.
Will be fixed in Simperium instead.
1 parent 13e613e commit a9a490b

File tree

1 file changed

+0
-21
lines changed
  • WordPressUtils/src/main/java/org/wordpress/android/util

1 file changed

+0
-21
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/JSONUtil.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -232,25 +232,4 @@ public static JSONObject getJSONChild(final JSONObject jsonParent, final String
232232
}
233233
return jsonChild;
234234
}
235-
236-
// Returns a copy of the passed JSONObject
237-
@SuppressWarnings("unchecked")
238-
public static JSONObject copyJSONObject(JSONObject object) {
239-
JSONObject objectCopy = new JSONObject();
240-
241-
if (object == null) return objectCopy;
242-
243-
Iterator<String> iterator = object.keys();
244-
while (iterator.hasNext()) {
245-
try {
246-
String key = iterator.next();
247-
Object value = object.get(key);
248-
objectCopy.put(key, value);
249-
} catch (JSONException e) {
250-
AppLog.e(T.UTILS, e);
251-
}
252-
}
253-
254-
return objectCopy;
255-
}
256235
}

0 commit comments

Comments
 (0)