Remove earcut dependency

This commit is contained in:
Yousef Khadadeh 2026-06-04 12:43:06 +03:00
parent f82b3185a1
commit 354c6e4cdc
4 changed files with 0 additions and 871 deletions

View file

@ -26,7 +26,6 @@
#include "../../CoordSpaceHelper.hpp"
#include <ranges>
#include <include/core/SkPathBuilder.h>
#include "../../EarcutIncludes.hpp"
#include "../../GUIStuff/ElementHelpers/TextLabelHelpers.hpp"

View file

@ -1,41 +0,0 @@
/*
* InfiniPaint
* Copyright (C) 2025-2026 Yousef Khadadeh
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "CoordSpaceHelper.hpp"
#include <earcut.hpp>
namespace mapbox {
namespace util {
template <>
struct nth<0, Vector2f> {
inline static auto get(const Vector2f &t) {
return t.x();
};
};
template <>
struct nth<1, Vector2f> {
inline static auto get(const Vector2f &t) {
return t.y();
};
};
} // namespace util
} // namespace mapbox