Skip to content

Commit 04c0532

Browse files
committed
Merge branch 'develop' of https://github.com/wordpress-mobile/WordPress-Android into feature/material-appcompat
2 parents c8ae9b8 + 6e2fc97 commit 04c0532

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)