aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/web/AsyncServlet.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/org/traccar/web/AsyncServlet.java b/src/org/traccar/web/AsyncServlet.java
index c55fd6e75..b10df5408 100644
--- a/src/org/traccar/web/AsyncServlet.java
+++ b/src/org/traccar/web/AsyncServlet.java
@@ -178,14 +178,7 @@ public class AsyncServlet extends BaseServlet {
JsonObjectBuilder result = Json.createObjectBuilder();
result.add("success", true);
- if (Context.getConfig().getBoolean("web.oldAsyncFormat")) {
- result.add("data", JsonConverter.arrayToJson(positionUpdates));
- } else {
- JsonObjectBuilder data = Json.createObjectBuilder();
- data.add("devices", JsonConverter.arrayToJson(deviceUpdates));
- data.add("positions", JsonConverter.arrayToJson(positionUpdates));
- result.add("data", data.build());
- }
+ result.add("data", JsonConverter.arrayToJson(positionUpdates));
deviceUpdates.clear();
positionUpdates.clear();