From: Amelia Coutard Date: Sun, 8 May 2022 18:44:09 +0000 (+0200) Subject: Removed useless concept and replaced its one use with its definition X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=d4a2758197aa7e2b3b7aaffefee777a409643d04;p=voyage-au-centre-des-fichiers.git Removed useless concept and replaced its one use with its definition --- diff --git a/src/kernel.cpp b/src/kernel.cpp index 4c766cd..b1293dd 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -4,15 +4,11 @@ #include "utils.hpp" #include "serial.hpp" -namespace detail { - template concept func_on_mem = std::invocable, os::phys_ptr>; -} - void remove_some_mem(os::phys_ptr mem_start, os::phys_ptr mem_end, os::phys_ptr remove_start, os::phys_ptr remove_end, - detail::func_on_mem auto callback + std::invocable, os::phys_ptr> auto callback ) { if (remove_start <= mem_start && mem_start < remove_end && remove_end < mem_end) { // Removes start: @@ -39,7 +35,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr ram_ptr = nullptr; asm("mov $page_list_one_past_end - 0xFFFFFFFF80000000,%0" : "=ri"(ram_ptr));