🔥 Remove “create” flag from session provider interface
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index edc3bab..d8d5e26 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - WebInterface.java - Copyright © 2010–2019 David Roden
+ * Sone - WebInterface.java - Copyright © 2010–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
@@ -265,8 +265,8 @@ public class WebInterface implements SessionProvider {
 
        @Override
        @Nullable
-       public Sone getCurrentSone(@Nonnull ToadletContext toadletContext, boolean createSession) {
-               return createSession ? getCurrentSoneCreatingSession(toadletContext) : getCurrentSoneWithoutCreatingSession(toadletContext);
+       public Sone getCurrentSone(@Nonnull ToadletContext toadletContext) {
+               return getCurrentSoneWithoutCreatingSession(toadletContext);
        }
 
        /**