]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/OutputVariableCommand.java
upd: rename package name and all references to it
[gigi.git] / src / org / cacert / gigi / output / template / OutputVariableCommand.java
diff --git a/src/org/cacert/gigi/output/template/OutputVariableCommand.java b/src/org/cacert/gigi/output/template/OutputVariableCommand.java
deleted file mode 100644 (file)
index 5dce3ae..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.cacert.gigi.output.template;
-
-import java.io.PrintWriter;
-import java.util.Collection;
-import java.util.Map;
-
-import org.cacert.gigi.localisation.Language;
-
-/**
- * Emits a variable.
- */
-public final class OutputVariableCommand implements Translatable {
-
-    private final String raw;
-
-    private final boolean unescaped;
-
-    /**
-     * Creates a new OutputVariableCommand.
-     * 
-     * @param raw
-     *            the variable to emit. If starting with <code>!</code> the
-     *            variable is emitted non-HTML-escaped.
-     */
-    public OutputVariableCommand(String raw) {
-        if (raw.charAt(0) == '!') {
-            unescaped = true;
-            this.raw = raw.substring(1);
-        } else {
-            unescaped = false;
-            this.raw = raw;
-        }
-    }
-
-    @Override
-    public void output(PrintWriter out, Language l, Map<String, Object> vars) {
-        Template.outputVar(out, l, vars, raw, unescaped);
-    }
-
-    @Override
-    public void addTranslations(Collection<String> s) {}
-}