     
     // MARK: - Private methods
     
-    private func unsupportedFlowError() -> NSError {
-        return NSError(domain: AuthenticatedSessionViewControllerFactory.errorDomain,
-                       code: AuthenticatedSessionViewControllerFactoryErrorCode.flowNotSupported.rawValue,
-                       userInfo: [NSLocalizedDescriptionKey: VectorL10n.authenticatedSessionFlowNotSupported])
-    }
-    
-    
     // MARK: - Password flow
     
     private func hasPasswordFlow(inFlows flows: [MXLoginFlow]) -> Bool {

    
    // MARK: - Constants
    
    static let errorDomain = "AuthenticatedSessionViewControllerFactoryErrorDomain"
    
    // MARK: - Properties
    
    // MARK: Private

            }
            
            guard let authenticationSession = authenticationSession, let flows = authenticationSession.flows else {
                onFailure(AuthenticatedSessionViewControllerFactoryError.flowNotSupported)
                return
            }
            
