From 9caf803986d14661e2e1842b80ee3aa58c8d5c6d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 7 Mar 2020 11:45:52 -0800 Subject: Remove comments --- src/main/java/org/traccar/notificators/NotificatorPushover.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/notificators/NotificatorPushover.java b/src/main/java/org/traccar/notificators/NotificatorPushover.java index 52646bdfb..141d652ca 100644 --- a/src/main/java/org/traccar/notificators/NotificatorPushover.java +++ b/src/main/java/org/traccar/notificators/NotificatorPushover.java @@ -47,10 +47,9 @@ public class NotificatorPushover extends Notificator { } public NotificatorPushover() { - // see https://pushover.net/api url = "https://api.pushover.net/1/messages.json"; - token = Context.getConfig().getString("notificator.pushover.token"); // (required) token from pushover.net - puser = Context.getConfig().getString("notificator.pushover.user"); // (required) user from pushover.net + token = Context.getConfig().getString("notificator.pushover.token"); + puser = Context.getConfig().getString("notificator.pushover.user"); } @Override @@ -61,9 +60,6 @@ public class NotificatorPushover extends Notificator { String device = ""; if (user.getAttributes().containsKey("notificator.pushover.device")) { - // optional: your user's device name to send the message directly - // to that device, rather than all of the user's devices (multiple devices may be separated by a comma) - // i.e.: device1,device2 (no space) device = user.getString("notificator.pushover.device").replaceAll(" *, *", ","); } -- cgit v1.2.3