summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala')
-rw-r--r--container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala42
1 files changed, 0 insertions, 42 deletions
diff --git a/container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala b/container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala
deleted file mode 100644
index 6469d4604d2..00000000000
--- a/container-core/src/main/scala/com/yahoo/container/handler/observability/HtmlUtil.scala
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.handler.observability
-
-import xml.{PrettyPrinter, Elem}
-
-
-/**
- * @author gjoranv
- * @author tonytv
- */
-object HtmlUtil {
- def link(target: String, anchor: String): Elem =
- <a href={target}>{anchor}</a>
-
- def link(targetAndAnchor: String): Elem = link(targetAndAnchor, targetAndAnchor)
-
- def unorderedList(items: Elem*) =
- <ul>
- {items}
- </ul>
-
- def li[T](children: T*) =
- <li>{children}</li>
-
- def h1(name: String) =
- <h1>{name}</h1>
-
- def html(title: String, body: Elem*) =
- <html>
- <head>
- <title>{title}</title>
- </head>
- <body>
- {body}
- </body>
- </html>
-
- def prettyPrintXhtml(elem: Elem): String = {
- """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">""" +
- "\n" + new PrettyPrinter(120, 2).format(elem)
- }
-}