aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/MainServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/http/MainServlet.java')
-rw-r--r--src/org/traccar/http/MainServlet.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/org/traccar/http/MainServlet.java b/src/org/traccar/http/MainServlet.java
index 84ec25906..18430f0c3 100644
--- a/src/org/traccar/http/MainServlet.java
+++ b/src/org/traccar/http/MainServlet.java
@@ -34,8 +34,6 @@ public class MainServlet extends BaseServlet {
logout(req, resp);
} else if (command.equals("/register")) {
register(req, resp);
- } else if (command.equals("/user/update")) {
- update(req, resp);
} else {
return false;
}
@@ -72,11 +70,5 @@ public class MainServlet extends BaseServlet {
Context.getDataManager().addUser(user);
sendResponse(resp.getWriter(), true);
}
-
- private void update(HttpServletRequest req, HttpServletResponse resp) throws Exception {
- Context.getDataManager().updateUser(JsonConverter.objectFromJson(
- req.getReader(), new User()));
- sendResponse(resp.getWriter(), true);
- }
}