Remove a dead input enum variant

This commit is contained in:
Brooks J Rady 2021-03-25 14:13:59 +00:00
parent 23df8e447a
commit 81a517b264
2 changed files with 17 additions and 18 deletions

View file

@ -593,7 +593,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
}
// FIXME: Deduplicate this with the callback below!
PluginInstruction::Input(input_type, input_bytes) => {
if let PluginInputType::Event(event) = input_type {
let PluginInputType::Event(event) = input_type;
for (instance, plugin_env) in plugin_map.values() {
if !plugin_env.events.contains(&event) {
continue;
@ -611,7 +611,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
handle_key.call(&[]).unwrap();
}
}
}
drop(send_screen_instructions.send(ScreenInstruction::Render));
}
PluginInstruction::Unload(pid) => drop(plugin_map.remove(&pid)),

View file

@ -23,7 +23,6 @@ pub enum NaughtyEventType {
#[derive(Clone, Debug)]
pub enum PluginInputType {
Normal(u32),
Event(NaughtyEventType),
}