From c88f2f3b3c1fe159b15af4c8db7edfa8c2f68560 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 17 Dec 2018 22:07:27 -0800 Subject: [PATCH] Remove unused flags. --- src/Main.elm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Main.elm b/src/Main.elm index ab651d5..8dff1ab 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -25,17 +25,13 @@ import Task syncTimeout = 10000 typingTimeout = 2000 -type alias Flags = - { token : Maybe String - } - -init : Flags -> Url -> Nav.Key -> (Model, Cmd Msg) -init flags url key = +init : () -> Url -> Nav.Key -> (Model, Cmd Msg) +init _ url key = let model = { key = key , route = Maybe.withDefault Unknown <| parse Scylla.Route.route url - , token = flags.token + , token = Nothing , loginUsername = "" , loginPassword = "" , apiUrl = "https://matrix.org" @@ -50,9 +46,7 @@ init flags url key = , transactionId = 0 , userData = Dict.empty } - cmd = case flags.token of - Just _ -> Cmd.none - Nothing -> getStoreValuePort "scylla.loginInfo" + cmd = getStoreValuePort "scylla.loginInfo" in (model, cmd)