aboutsummaryrefslogtreecommitdiff
path: root/mavigator-cockpit/src/main/scala/mavigator/util/environment.scala
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2016-02-27 17:11:10 -0800
committerJakob Odersky <jakob@odersky.com>2016-04-14 04:03:17 -0700
commitdae336ee5514970fee93b0db25ce272ab83bd3c7 (patch)
treea628a7c02c6956d99510d98f2a0321be00b241bf /mavigator-cockpit/src/main/scala/mavigator/util/environment.scala
parent773bc081728bf770281a22c1700d05b1def75542 (diff)
downloadmavigator-dae336ee5514970fee93b0db25ce272ab83bd3c7.tar.gz
mavigator-dae336ee5514970fee93b0db25ce272ab83bd3c7.tar.bz2
mavigator-dae336ee5514970fee93b0db25ce272ab83bd3c7.zip
Refactor UI to a HUD-style interface
Diffstat (limited to 'mavigator-cockpit/src/main/scala/mavigator/util/environment.scala')
-rw-r--r--mavigator-cockpit/src/main/scala/mavigator/util/environment.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/mavigator-cockpit/src/main/scala/mavigator/util/environment.scala b/mavigator-cockpit/src/main/scala/mavigator/util/environment.scala
deleted file mode 100644
index 3d58c5a..0000000
--- a/mavigator-cockpit/src/main/scala/mavigator/util/environment.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-package mavigator
-package util
-
-import org.scalajs.dom.html
-
-/** Represents an application's environment */
-trait Environment {
-
- /** The application's root element. */
- def root: html.Element
-
- /** Retrieve an asset's URL based on its file location. */
- def asset(file: String): String
-
-}
-
-class StaticEnvironment(
- override val root: html.Element,
- assetsBase: String
-) extends Environment {
-
- override def asset(file: String): String = assetsBase + "/" + file
-
-}