From 5b4dcc67b20c4dcd72f2d361444393e7fec6de06 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 11 Mar 2023 19:07:03 +0100 Subject: [PATCH] refactor(core): Remove XmppConnectionResult --- packages/moxxmpp/lib/src/connection.dart | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/moxxmpp/lib/src/connection.dart b/packages/moxxmpp/lib/src/connection.dart index bf5483e..b9a12c2 100644 --- a/packages/moxxmpp/lib/src/connection.dart +++ b/packages/moxxmpp/lib/src/connection.dart @@ -77,21 +77,6 @@ class StreamHeaderNonza extends XMLNode { ); } -/// The result of an awaited connection. -class XmppConnectionResult { - const XmppConnectionResult( - this.success, { - this.error, - }); - - /// True if the connection was successful. False if it failed for any reason. - final bool success; - - // If a connection attempt fails, i.e. success is false, then this indicates the - // reason the connection failed. - final XmppError? error; -} - /// This class is a connection to the server. class XmppConnection { XmppConnection(