From 3a0c45ee6d1a83a37171ef644a2ead5cf3ac6552 Mon Sep 17 00:00:00 2001 From: Dan Roundhill Date: Mon, 17 Nov 2014 11:08:45 -0800 Subject: [PATCH] Removed unsuccessful fix for #1982. Will be fixed in Simperium instead. --- .../org/wordpress/android/util/JSONUtil.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/WordPressUtils/src/main/java/org/wordpress/android/util/JSONUtil.java b/WordPressUtils/src/main/java/org/wordpress/android/util/JSONUtil.java index d653dc22fb83..f5644adbb606 100644 --- a/WordPressUtils/src/main/java/org/wordpress/android/util/JSONUtil.java +++ b/WordPressUtils/src/main/java/org/wordpress/android/util/JSONUtil.java @@ -232,25 +232,4 @@ public static JSONObject getJSONChild(final JSONObject jsonParent, final String } return jsonChild; } - - // Returns a copy of the passed JSONObject - @SuppressWarnings("unchecked") - public static JSONObject copyJSONObject(JSONObject object) { - JSONObject objectCopy = new JSONObject(); - - if (object == null) return objectCopy; - - Iterator iterator = object.keys(); - while (iterator.hasNext()) { - try { - String key = iterator.next(); - Object value = object.get(key); - objectCopy.put(key, value); - } catch (JSONException e) { - AppLog.e(T.UTILS, e); - } - } - - return objectCopy; - } } \ No newline at end of file