From 210b0b883bbc8b660d46cc783f877cbaa5b93df0 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 19 Sep 2021 16:17:31 -0600 Subject: [PATCH] AK: Remove unused ifdef for BUILDING_SERENITY_TOOLCHAIN The only use of this define was removed in commit 5f724b6ca1aae3a5a8c7189069649e8a9347cca2, over a year ago. The define was there to prevent the LibC build we built before libstdc++ from complaining about missing libgcc symbols. However, as noted in that commit, we never actually needed to build LibC at all. --- AK/Demangle.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 } }