Skip to content

Commit 24135cf

Browse files
committed
Remove getNextMessageFromPayload
1 parent 82e1766 commit 24135cf

File tree

2 files changed

+0
-223
lines changed

2 files changed

+0
-223
lines changed

iterableapi/src/androidTest/java/com/iterable/iterableapi/IterableInAppManagerUnitTest.java

Lines changed: 0 additions & 201 deletions
This file was deleted.

iterableapi/src/main/java/com/iterable/iterableapi/IterableInAppMessage.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -434,26 +434,4 @@ static JSONObject encodePadding(int padding) throws JSONException {
434434
}
435435
return paddingJson;
436436
}
437-
438-
/**
439-
* Gets the next message from the payload
440-
* @param payload
441-
* @return
442-
*/
443-
@Deprecated
444-
public static JSONObject getNextMessageFromPayload(String payload) {
445-
JSONObject returnObject = null;
446-
if (payload != null && payload != "") {
447-
try {
448-
JSONObject mainObject = new JSONObject(payload);
449-
JSONArray jsonArray = mainObject.optJSONArray(IterableConstants.ITERABLE_IN_APP_MESSAGE);
450-
if (jsonArray != null) {
451-
returnObject = jsonArray.optJSONObject(0);
452-
}
453-
} catch (JSONException e) {
454-
IterableLogger.e(IterableInAppManager.TAG, e.toString());
455-
}
456-
}
457-
return returnObject;
458-
}
459437
}

0 commit comments

Comments
 (0)