From 12c286ca3f12c0d9ce2009e027ec6c7ff2e26166 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Mon, 5 Aug 2024 17:25:29 +0200 Subject: [PATCH] remove comments --- shell/src/interrupts.rs | 1 - shell/src/main.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/shell/src/interrupts.rs b/shell/src/interrupts.rs index fd5fa9b..e4ad217 100644 --- a/shell/src/interrupts.rs +++ b/shell/src/interrupts.rs @@ -153,7 +153,6 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac } } - // clear_buffer(); for i in cmd_history.history [cmd_history.history.len() - cmd_history.last - 1] .chars() diff --git a/shell/src/main.rs b/shell/src/main.rs index 18c009b..5c05e40 100644 --- a/shell/src/main.rs +++ b/shell/src/main.rs @@ -42,9 +42,6 @@ pub fn init_kernel(boot_info: &'static BootInfo) { allocator::init_heap(&mut mapper, &mut frame_allocator).expect("Heap initialization failed"); - // let args: vec::Vec<&str> = vec![""]; - // (COMMAND_LIST[1].fun)(args); - #[cfg(debug_assertions)] print!( "\nHighlightOS Shell v{} DEBUG\n\nhls < ", @@ -76,8 +73,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! { if let Some(command) = COMMAND_LIST.iter().find(|&com| com.name == req_com) { args.remove(0); - // print!("\n"); - let rtr = (command.fun)(args); if rtr != 1 {