From 23280c00e39bc1a7a899a6e2d5dda230f28a12b3 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 7 Dec 2016 15:04:59 +0500 Subject: - Extract MailMessage class - Move getting "unknown.vm" to catch --- src/org/traccar/notification/NotificationFormatter.java | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/org/traccar/notification/NotificationFormatter.java') diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java index 5182f9b58..2d580922c 100644 --- a/src/org/traccar/notification/NotificationFormatter.java +++ b/src/org/traccar/notification/NotificationFormatter.java @@ -29,21 +29,6 @@ import org.traccar.reports.ReportUtils; public final class NotificationFormatter { - public static class MailMessage { - private String subject; - private String body; - public MailMessage(String subject, String body) { - this.subject = subject; - this.body = body; - } - public String getSubject() { - return subject; - } - public String getBody() { - return body; - } - } - private NotificationFormatter() { } @@ -66,8 +51,6 @@ public final class NotificationFormatter { template = Context.getVelocityEngine().getTemplate(event.getType() + ".vm"); } catch (ResourceNotFoundException error) { Log.warning(error); - } - if (template == null) { template = Context.getVelocityEngine().getTemplate("unknown.vm"); } -- cgit v1.2.3