From bdc19c33de32609626196018d488007160197879 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Sat, 25 Mar 2023 08:25:45 +0100 Subject: [PATCH] remove deprecated Commander traits --- nested/src/commander.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/nested/src/commander.rs b/nested/src/commander.rs index 88c3065..fdbeaee 100644 --- a/nested/src/commander.rs +++ b/nested/src/commander.rs @@ -11,34 +11,7 @@ use crate::{ tree::{nav::TreeNavResult} }; -//use r3vi::view::singleton::*; - pub trait ObjCommander { fn send_cmd_obj(&mut self, cmd_obj: Arc>) -> TreeNavResult; } -/* -//impl> ObjCommander for T { -impl ObjCommander for C -where C::Cmd: 'static -{ - fn send_cmd_obj(&mut self, _cmd_obj: Arc>) -> TreeNavResult{ - /* - self.send_cmd( - &cmd_obj.read().unwrap() - .get_port::>().unwrap() - .get_view().unwrap() - .get() - ); - */ - } -} -impl Commander for r3vi::buffer::vec::VecBuffer { - type Cmd = r3vi::buffer::vec::VecDiff; - - fn send_cmd(&mut self, cmd: &Self::Cmd) -> TreeNavResult { - self.apply_diff(cmd.clone()); - TreeNavResult:: - } -} -*/