Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Reduce includes

Dmitry Kazakov304c00793e43
diff --git a/libs/pigment/KoCompositeOp.cpp b/libs/pigment/KoCompositeOp.cpp
index 7c4dcef97c..2c4ae472c8 100644
--- a/libs/pigment/KoCompositeOp.cpp
+++ b/libs/pigment/KoCompositeOp.cpp
@@ -11,7 +11,6 @@
#include <QList>
#include "KoColorSpace.h"
-#include "KoColorSpaceMaths.h"
#include "KoCompositeOpRegistry.h"
static QString compositeOpDisplayName(const QString &id)
@@ -160,8 +159,6 @@ void KoCompositeOp::composite(quint8 *dstRowStart, qint32 dstRowStride,
void KoCompositeOp::composite(const KoCompositeOp::ParameterInfo& params) const
{
- using namespace Arithmetic;
-
composite(params.dstRowStart , params.dstRowStride ,
params.srcRowStart , params.srcRowStride ,
params.maskRowStart , params.maskRowStride,
diff --git a/libs/pigment/compositeops/KoStreamedMath.h b/libs/pigment/compositeops/KoStreamedMath.h
index ad05f3ba73..89dbe26854 100644
--- a/libs/pigment/compositeops/KoStreamedMath.h
+++ b/libs/pigment/compositeops/KoStreamedMath.h
@@ -24,8 +24,8 @@
#endif
#include <KoAlwaysInline.h>
-#include <KoColorSpaceMaths.h>
#include <KoCompositeOp.h>
+#include <KoColorSpaceMaths.h>
#define BLOCKDEBUG 0
@@ -165,8 +165,6 @@ struct KoStreamedMath {
template<bool useMask, bool useFlow, class Compositor, int pixelSize>
static void genericComposite_novector(const KoCompositeOp::ParameterInfo &params)
{
- using namespace Arithmetic;
-
const qint32 linearInc = pixelSize;
qint32 srcLinearInc = params.srcRowStride ? pixelSize : 0;
@@ -328,8 +326,6 @@ struct KoStreamedMath {
template<bool useMask, bool useFlow, class Compositor, int pixelSize>
static void genericComposite(const KoCompositeOp::ParameterInfo &params)
{
- using namespace Arithmetic;
-
const int vectorSize = static_cast<int>(float_v::size);
const qint32 vectorInc = pixelSize * vectorSize;
const qint32 linearInc = pixelSize;
diff --git a/plugins/impex/psd/psd_image_data.cpp b/plugins/impex/psd/psd_image_data.cpp
index 9205bc41cc..138c0586c1 100644
--- a/plugins/impex/psd/psd_image_data.cpp
+++ b/plugins/impex/psd/psd_image_data.cpp
@@ -17,8 +17,6 @@
#include <KoChannelInfo.h>
#include <KoColorSpace.h>
-#include <KoColorSpaceMaths.h>
-#include <KoColorSpaceTraits.h>
#include <kis_iterator_ng.h>
#include <kis_paint_device.h>