diff --git a/AK/Demangle.h b/AK/Demangle.h index d99278aa13..9e41dc949c 100644 --- a/AK/Demangle.h +++ b/AK/Demangle.h @@ -8,25 +8,18 @@ #include #include - -#ifndef BUILDING_SERENITY_TOOLCHAIN -# include -#endif +#include namespace AK { inline String demangle(const StringView& name) { -#ifdef BUILDING_SERENITY_TOOLCHAIN - return name; -#else int status = 0; auto* demangled_name = abi::__cxa_demangle(name.to_string().characters(), nullptr, nullptr, &status); auto string = String(status == 0 ? demangled_name : name); if (status == 0) kfree(demangled_name); return string; -#endif } }