mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
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:
parent
8a331d4fa0
commit
345662d617
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "SampleWidget.h"
|
#include "SampleWidget.h"
|
||||||
#include <AK/Math.h>
|
|
||||||
#include <LibGUI/Painter.h>
|
#include <LibGUI/Painter.h>
|
||||||
|
|
||||||
SampleWidget::SampleWidget()
|
SampleWidget::SampleWidget()
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/Math.h>
|
|
||||||
#include <LibGfx/Filters/ColorFilter.h>
|
#include <LibGfx/Filters/ColorFilter.h>
|
||||||
#include <LibGfx/Matrix3x3.h>
|
#include <LibGfx/Matrix3x3.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue