From 345662d617f54b432680698816ca914dd4b7efef Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 2 Jan 2023 16:57:12 +0100 Subject: [PATCH] Userland: Remove unused includes of AK/Math.h These instances were detected by searching for files that include Kernel/Debug.h, but don't match the regex: \\b(acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|cos|cosh|E|exp|exp2 |fabs|fmod|hypot|log|log10|log2|NaN|Pi|pow|product_even|product_odd|rema inder|round_to|rsqrt|sin|sincos|sinh|sqrt|Sqrt1_2|Sqrt2|tan|tanh)\\b (Without the linebreaks.) This regex is pessimistic, so there might be more files that don't actually use any math functions. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another. --- Userland/Applications/SoundPlayer/SampleWidget.cpp | 1 - Userland/Libraries/LibGfx/Filters/MatrixFilter.h | 1 - 2 files changed, 2 deletions(-) diff --git a/Userland/Applications/SoundPlayer/SampleWidget.cpp b/Userland/Applications/SoundPlayer/SampleWidget.cpp index 2db1e88130..6b8b8dad90 100644 --- a/Userland/Applications/SoundPlayer/SampleWidget.cpp +++ b/Userland/Applications/SoundPlayer/SampleWidget.cpp @@ -6,7 +6,6 @@ */ #include "SampleWidget.h" -#include #include SampleWidget::SampleWidget() diff --git a/Userland/Libraries/LibGfx/Filters/MatrixFilter.h b/Userland/Libraries/LibGfx/Filters/MatrixFilter.h index 58025529d5..b1562e0064 100644 --- a/Userland/Libraries/LibGfx/Filters/MatrixFilter.h +++ b/Userland/Libraries/LibGfx/Filters/MatrixFilter.h @@ -6,7 +6,6 @@ #pragma once -#include #include #include