Skip to content

Commit

Permalink
Reduce <algorithm> include (#21947)
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur committed May 1, 2024
1 parent 8973e35 commit 7b12667
Show file tree
Hide file tree
Showing 153 changed files with 3 additions and 175 deletions.
1 change: 0 additions & 1 deletion src/openrct2-ui/TextComposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "interface/InGameConsole.h"

#include <SDL.h>
#include <algorithm>
#include <openrct2-ui/interface/Window.h>
#include <openrct2/common.h>
#include <openrct2/core/Memory.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/openrct2-ui/UiContext.Linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# include "UiContext.h"

# include <SDL.h>
# include <algorithm>
# include <dlfcn.h>
# include <openrct2/common.h>
# include <openrct2/core/Path.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/UiContext.Win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

# include <SDL.h>
# include <SDL_syswm.h>
# include <algorithm>
# include <openrct2/common.h>
# include <openrct2/core/Path.hpp>
# include <openrct2/core/String.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/UiContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "title/TitleSequencePlayer.h"

#include <SDL.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdlib>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/drawing/BitmapReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "BitmapReader.h"

#include <SDL.h>
#include <algorithm>
#include <cstring>
#include <openrct2/core/Imaging.h>
#include <stdexcept>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# include "TransparencyDepth.h"

# include <SDL.h>
# include <algorithm>
# include <cmath>
# include <openrct2-ui/interface/Window.h>
# include <openrct2/config/Config.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/drawing/engines/opengl/TextureCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "OpenGLAPI.h"

#include <SDL_pixels.h>
#include <algorithm>
#include <array>
#include <mutex>
#include <openrct2/common.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/input/MouseInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <cmath>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/interface/InGameConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "Theme.h"

#include <algorithm>
#include <cstring>
#include <openrct2/Context.h>
#include <openrct2/Version.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/interface/Theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "Window.h"

#include <algorithm>
#include <memory>
#include <openrct2/Context.h>
#include <openrct2/PlatformEnvironment.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/interface/ViewportInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "Viewport.h"
#include "Window.h"

#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
#include <openrct2/Game.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/interface/Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "Window.h"

#include <algorithm>
#include <cmath>
#include <openrct2/Context.h>
#include <openrct2/Input.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/interface/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "openrct2/world/Location.hpp"

#include <SDL.h>
#include <algorithm>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/Input.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/scripting/ScUi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# include "ScViewport.hpp"
# include "ScWindow.hpp"

# include <algorithm>
# include <memory>
# include <openrct2/Context.h>
# include <openrct2/Input.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/title/TitleSequencePlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "../interface/Window.h"

#include <algorithm>
#include <memory>
#include <openrct2/Context.h>
#include <openrct2/Game.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Changelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <fstream>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/ClearScenery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/DebugPaint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Dropdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <bitset>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/EditorObjectSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <cctype>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/EditorObjectiveOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "../interface/Window.h"
#include "Window.h"

#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/GameState.h>
#include <openrct2/OpenRCT2.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/EditorScenarioOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "../interface/Window.h"
#include "Window.h"

#include <algorithm>
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
#include <openrct2/Game.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Finances.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Graph.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/GameBottomToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "../interface/Theme.h"

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/InstallTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <memory>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/LandRights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/LoadSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <ctime>
#include <iterator>
#include <memory>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/MapGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/NewCampaign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/NewRide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <iterator>
#include <limits>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/News.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "../interface/Theme.h"

#include <algorithm>
#include <cmath>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Park.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "../interface/Theme.h"

#include <algorithm>
#include <array>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/PatrolArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Ride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "../interface/Theme.h"

#include <algorithm>
#include <cmath>
#include <iterator>
#include <limits>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/RideConstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "../ride/Construction.h"

#include <algorithm>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Scenery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <deque>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Viewport.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TextInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include <SDL.h>
#include <SDL_keycode.h>
#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TileInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Tooltip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TopToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "../interface/InGameConsole.h"
#include "../scripting/CustomMenu.h"

#include <algorithm>
#include <iterator>
#include <limits>
#include <openrct2-ui/interface/Dropdown.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TrackDesignManage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TrackDesignPlace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/TrackList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/ride/Construction.h>
#include <openrct2-ui/windows/Window.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Transparency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <iterator>
#include <openrct2-ui/interface/Dropdown.h>
#include <openrct2-ui/interface/Theme.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/ViewClipping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <cmath>
#include <openrct2-ui/interface/Viewport.h>
#include <openrct2-ui/interface/Widget.h>
Expand Down
1 change: 0 additions & 1 deletion src/openrct2-ui/windows/Water.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/

#include <algorithm>
#include <openrct2-ui/interface/LandTool.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
Expand Down

0 comments on commit 7b12667

Please sign in to comment.