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.
This commit is contained in:
Ben Wiederhake 2023-01-02 16:57:12 +01:00 committed by Tim Flynn
parent 8a331d4fa0
commit 345662d617
2 changed files with 0 additions and 2 deletions

View file

@ -6,7 +6,6 @@
*/
#include "SampleWidget.h"
#include <AK/Math.h>
#include <LibGUI/Painter.h>
SampleWidget::SampleWidget()

View file

@ -6,7 +6,6 @@
#pragma once
#include <AK/Math.h>
#include <LibGfx/Filters/ColorFilter.h>
#include <LibGfx/Matrix3x3.h>