diff --git a/examples/repl/cmdline.rs b/examples/repl/cmdline.rs index 72f3d23ac..43f6e8414 100644 --- a/examples/repl/cmdline.rs +++ b/examples/repl/cmdline.rs @@ -426,7 +426,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu joinqr \n\ setqr \n\ providerinfo \n\ - event \n\ fileinfo \n\ estimatedeletion \n\ clear -- clear screen\n\ @@ -1220,17 +1219,6 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu } } } - // TODO: implement this again, unclear how to match this through though, without writing a parser. - // "event" => { - // ensure!(!arg1.is_empty(), "Argument missing."); - // let event = arg1.parse()?; - // let event = EventType::from_u32(event).ok_or(format_err!("EventType::from_u32({})", event))?; - // let r = context.emit_event(event, 0 as libc::uintptr_t, 0 as libc::uintptr_t); - // println!( - // "Sending event {:?}({}), received value {}.", - // event, event as usize, r, - // ); - // } "fileinfo" => { ensure!(!arg1.is_empty(), "Argument missing."); diff --git a/examples/repl/main.rs b/examples/repl/main.rs index d2693a903..4b2f7aa63 100644 --- a/examples/repl/main.rs +++ b/examples/repl/main.rs @@ -227,13 +227,12 @@ const CONTACT_COMMANDS: [&str; 9] = [ "unblock", "listblocked", ]; -const MISC_COMMANDS: [&str; 12] = [ +const MISC_COMMANDS: [&str; 11] = [ "getqr", "getqrsvg", "getbadqr", "checkqr", "joinqr", - "event", "fileinfo", "clear", "exit",