🔥 Remove session access from freenet request
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / page / FreenetRequest.kt
index 65b45d9..ce2eacb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - FreenetRequest.kt - Copyright Â© 2011–2019 David Roden
+ * Sone - FreenetRequest.kt - Copyright Â© 2011–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -29,13 +29,4 @@ open class FreenetRequest(uri: URI, method: Method,
                val httpRequest: HTTPRequest,
                val toadletContext: ToadletContext,
                val sessionManager: SessionManager
-) : Request(uri, method) {
-
-       val session: Session
-               get() =
-                       sessionManager.useSession(toadletContext)
-                                       ?: sessionManager.createSession(randomUUID().toString(), toadletContext)
-
-       val existingSession: Session? get() = sessionManager.useSession(toadletContext)
-
-}
+) : Request(uri, method)