From 241c9a117ef47b81d48398e1e9b23471dd2cdbec Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Tue, 24 Sep 2024 11:16:18 +0200 Subject: [PATCH] Remove Tchap unused code --- .../View/TchapAuthenticationLoginScreen.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Tchap/Modules/Authentication/Login/View/TchapAuthenticationLoginScreen.swift b/Tchap/Modules/Authentication/Login/View/TchapAuthenticationLoginScreen.swift index 12f80d885..5d4cd4d46 100644 --- a/Tchap/Modules/Authentication/Login/View/TchapAuthenticationLoginScreen.swift +++ b/Tchap/Modules/Authentication/Login/View/TchapAuthenticationLoginScreen.swift @@ -70,14 +70,6 @@ struct TchapAuthenticationLoginScreen: View { } - /// The sever information section that includes a button to select a different server. - var serverInfo: some View { - AuthenticationServerInfoSection(address: viewModel.viewState.homeserver.address, - flow: .login) { - viewModel.send(viewAction: .selectServer) - } - } - /// The form with text fields for username and password, along with a submit button. var loginForm: some View { VStack(spacing: 14) { @@ -156,17 +148,9 @@ struct TchapAuthenticationLoginScreen: View { } } -// // Tchap: -// func usernameChanged(newText: String) { -// usernameEditingChanged(isEditing: <#T##Bool#>) -// } - /// Parses the username for a homeserver. func usernameEditingChanged(isEditing: Bool) { guard !isEditing, !viewModel.username.isEmpty else { return } - - // Tchap: don't parse username -// viewModel.send(viewAction: .parseUsername) } /// Resets the password field focus.