From 131a828ed0f890393ecba7612b83b411b7df7b2a Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 25 Apr 2023 23:23:04 +0000 Subject: [PATCH] mx-sanebot: remove dead code --- pkgs/mx-sanebot/src/main.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkgs/mx-sanebot/src/main.rs b/pkgs/mx-sanebot/src/main.rs index 9c39595a..d3e5f694 100644 --- a/pkgs/mx-sanebot/src/main.rs +++ b/pkgs/mx-sanebot/src/main.rs @@ -80,17 +80,6 @@ impl Runner { } } - // add our CommandBot to be notified of incoming messages, we do this after the - // initial sync to avoid responding to messages before the bot was running. - // self.client.add_event_handler(on_room_message); - - // // since we called `sync_once` before we entered our sync loop we must pass - // // that sync token to `sync` - // let settings = SyncSettings::default().token(response.next_batch); - // // this keeps state from the server streaming in to CommandBot via the - // // EventHandler trait - // self.client.sync(settings).await?; - Ok(()) }