diff --git a/Generals/GameEngine/Include/Common/STLUtils.h b/Generals/GameEngine/Include/Common/STLUtils.h deleted file mode 100644 index eef1a3a1195..00000000000 --- a/Generals/GameEngine/Include/Common/STLUtils.h +++ /dev/null @@ -1,61 +0,0 @@ -/* -** Command & Conquer Generals Zero Hour(tm) -** Copyright 2025 TheSuperHackers -** -** 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 . -*/ - -#pragma once - -#include -#include - -namespace stl -{ - -// Finds first matching element in vector-like container and erases it. -template -bool find_and_erase(Container& container, const typename Container::value_type& value) -{ - typename Container::const_iterator it = container.begin(); - for (; it != container.end(); ++it) - { - if (*it == value) - { - container.erase(it); - return true; - } - } - return false; -} - -// Finds first matching element in vector-like container and removes it by swapping it with the last element. -// This is generally faster than erasing from a vector, but will change the element sorting. -template -bool find_and_erase_unordered(Container& container, const typename Container::value_type& value) -{ - typename Container::iterator it = container.begin(); - for (; it != container.end(); ++it) - { - if (*it == value) - { - *it = CPP_11(std::move)(container.back()); - container.pop_back(); - return true; - } - } - return false; -} - -} // namespace stl diff --git a/Generals/Run/place_steam_build_here.txt b/Generals/Run/place_steam_build_here.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/GeneralsMD/Run/place_steam_build_here.txt b/GeneralsMD/Run/place_steam_build_here.txt deleted file mode 100644 index e69de29bb2d..00000000000