Skip to content

Commit

Permalink
refactor: Remove unused #includes (endless-sky#9266)
Browse files Browse the repository at this point in the history
  • Loading branch information
quyykk authored Sep 16, 2023
1 parent e670747 commit 21adffc
Show file tree
Hide file tree
Showing 34 changed files with 0 additions and 57 deletions.
1 change: 0 additions & 1 deletion source/BoardingPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Government.h"
#include "Information.h"
#include "Interface.h"
#include "Messages.h"
#include "PlayerInfo.h"
#include "Preferences.h"
#include "Random.h"
Expand Down
1 change: 0 additions & 1 deletion source/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Mask.h"
#include "MaskManager.h"
#include "Random.h"
#include "Screen.h"
#include "Sprite.h"
#include "SpriteSet.h"

Expand Down
1 change: 0 additions & 1 deletion source/DrawList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Preferences.h"
#include "Screen.h"
#include "Sprite.h"
#include "SpriteSet.h"
#include "SpriteShader.h"

#include <cmath>
Expand Down
2 changes: 0 additions & 2 deletions source/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "NPC.h"
#include "OutlineShader.h"
#include "Person.h"
#include "pi.h"
#include "Planet.h"
#include "PlanetLabel.h"
#include "PlayerInfo.h"
#include "PointerShader.h"
#include "Politics.h"
#include "Preferences.h"
#include "Projectile.h"
#include "Random.h"
Expand Down
6 changes: 0 additions & 6 deletions source/EscortDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "EscortDisplay.h"

#include "Color.h"
#include "text/DisplayText.h"
#include "text/Font.h"
#include "text/FontSet.h"
#include "GameData.h"
#include "Government.h"
#include "Information.h"
#include "Interface.h"
#include "LineShader.h"
#include "OutlineShader.h"
#include "Point.h"
#include "PointerShader.h"
#include "Rectangle.h"
#include "Ship.h"
#include "Sprite.h"
Expand Down
1 change: 0 additions & 1 deletion source/Fleet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Government.h"
#include "Logger.h"
#include "Phrase.h"
#include "pi.h"
#include "Planet.h"
#include "Random.h"
#include "Ship.h"
Expand Down
1 change: 0 additions & 1 deletion source/FormationPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.

#include "FormationPattern.h"

#include "Angle.h"
#include "DataNode.h"

#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion source/GameAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "DataNode.h"
#include "DataWriter.h"
#include "Dialog.h"
#include "EsUuid.h"
#include "text/Format.h"
#include "GameData.h"
#include "GameEvent.h"
Expand Down
2 changes: 0 additions & 2 deletions source/GameData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Command.h"
#include "ConditionsStore.h"
#include "Conversation.h"
#include "DataFile.h"
#include "DataNode.h"
#include "DataWriter.h"
#include "Effect.h"
Expand Down Expand Up @@ -52,7 +51,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Plugins.h"
#include "PointerShader.h"
#include "Politics.h"
#include "Random.h"
#include "RingShader.h"
#include "Ship.h"
#include "Sprite.h"
Expand Down
1 change: 0 additions & 1 deletion source/GameEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.

#include "DataWriter.h"
#include "GameData.h"
#include "Government.h"
#include "Planet.h"
#include "PlayerInfo.h"
#include "System.h"
Expand Down
2 changes: 0 additions & 2 deletions source/GameLoadingPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Conversation.h"
#include "ConversationPanel.h"
#include "GameData.h"
#include "Information.h"
#include "Interface.h"
#include "MaskManager.h"
#include "MenuAnimationPanel.h"
#include "MenuPanel.h"
Expand Down
1 change: 0 additions & 1 deletion source/HailPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Information.h"
#include "Interface.h"
#include "Messages.h"
#include "Phrase.h"
#include "Planet.h"
#include "PlayerInfo.h"
#include "Politics.h"
Expand Down
1 change: 0 additions & 1 deletion source/HiringPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Interface.h"
#include "PlayerInfo.h"
#include "Ship.h"
#include "UI.h"

#include <algorithm>

Expand Down
3 changes: 0 additions & 3 deletions source/LoadPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "FillShader.h"
#include "text/Font.h"
#include "text/FontSet.h"
#include "text/Format.h"
#include "GameData.h"
#include "Information.h"
#include "Interface.h"
#include "text/layout.hpp"
#include "MainPanel.h"
#include "Messages.h"
#include "PlayerInfo.h"
#include "Preferences.h"
#include "Rectangle.h"
#include "ShipyardPanel.h"
#include "StarField.h"
#include "StartConditionsPanel.h"
#include "text/truncate.hpp"
Expand Down
1 change: 0 additions & 1 deletion source/MainPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "PlayerInfo.h"
#include "PlayerInfoPanel.h"
#include "Preferences.h"
#include "Random.h"
#include "Screen.h"
#include "Ship.h"
#include "ShipEvent.h"
Expand Down
1 change: 0 additions & 1 deletion source/MapPlanetCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Planet.h"
#include "Point.h"
#include "PointerShader.h"
#include "Politics.h"
#include "Screen.h"
#include "SpriteShader.h"
#include "StellarObject.h"
Expand Down
3 changes: 0 additions & 3 deletions source/MapSalesPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,15 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Government.h"
#include "ItemInfoDisplay.h"
#include "text/layout.hpp"
#include "Outfit.h"
#include "PlayerInfo.h"
#include "Point.h"
#include "PointerShader.h"
#include "Preferences.h"
#include "RingShader.h"
#include "Screen.h"
#include "Ship.h"
#include "Sprite.h"
#include "SpriteSet.h"
#include "SpriteShader.h"
#include "StellarObject.h"
#include "System.h"
#include "text/truncate.hpp"
#include "UI.h"
Expand Down
1 change: 0 additions & 1 deletion source/Minable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Flotsam.h"
#include "text/Format.h"
#include "GameData.h"
#include "Mask.h"
#include "Outfit.h"
#include "pi.h"
#include "Projectile.h"
Expand Down
1 change: 0 additions & 1 deletion source/MissionAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "DataNode.h"
#include "DataWriter.h"
#include "Dialog.h"
#include "EsUuid.h"
#include "text/Format.h"
#include "GameData.h"
#include "GameEvent.h"
Expand Down
1 change: 0 additions & 1 deletion source/MissionPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "System.h"
#include "text/truncate.hpp"
#include "UI.h"
#include "Wormhole.h"

#include <algorithm>
#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion source/NPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Messages.h"
#include "Planet.h"
#include "PlayerInfo.h"
#include "Random.h"
#include "Ship.h"
#include "ShipEvent.h"
#include "System.h"
Expand Down
1 change: 0 additions & 1 deletion source/PlayerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "text/Format.h"
#include "GameData.h"
#include "Government.h"
#include "Hardpoint.h"
#include "Logger.h"
#include "Messages.h"
#include "Outfit.h"
Expand Down
1 change: 0 additions & 1 deletion source/Plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Logger.h"

#include <algorithm>
#include <cassert>
#include <map>

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion source/Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "SpriteSet.h"
#include "StellarObject.h"
#include "System.h"
#include "TextReplacements.h"
#include "Visual.h"
#include "Wormhole.h"

Expand Down
1 change: 0 additions & 1 deletion source/ShipJumpNavigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "System.h"

#include <algorithm>
#include <cassert>
#include <iterator>

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion source/ShipyardPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Planet.h"
#include "PlayerInfo.h"
#include "Point.h"
#include "PointerShader.h"
#include "Screen.h"
#include "Ship.h"
#include "Sprite.h"
Expand Down
1 change: 0 additions & 1 deletion source/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Sound.h"

#include "File.h"
#include "Files.h"

#include <AL/al.h>

Expand Down
2 changes: 0 additions & 2 deletions source/SpriteQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.

#include "SpriteQueue.h"

#include "ImageBuffer.h"
#include "ImageSet.h"
#include "Mask.h"
#include "Sprite.h"
#include "SpriteSet.h"

Expand Down
1 change: 0 additions & 1 deletion source/StarField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "Angle.h"
#include "Body.h"
#include "DrawList.h"
#include "Engine.h"
#include "pi.h"
#include "Point.h"
#include "Preferences.h"
Expand Down
1 change: 0 additions & 1 deletion source/StartConditions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "StartConditions.h"

#include "DataNode.h"
#include "DataWriter.h"
#include "text/Format.h"
#include "GameData.h"
#include "Logger.h"
Expand Down
1 change: 0 additions & 1 deletion source/StartConditionsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "FillShader.h"
#include "text/Font.h"
#include "text/FontSet.h"
#include "text/Format.h"
#include "GameData.h"
#include "Information.h"
#include "Interface.h"
Expand Down
1 change: 0 additions & 1 deletion source/TextReplacements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "ConditionSet.h"
#include "ConditionsStore.h"
#include "DataNode.h"
#include "PlayerInfo.h"

#include <set>

Expand Down
9 changes: 0 additions & 9 deletions source/UniverseObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,10 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "DataFile.h"
#include "DataNode.h"
#include "Files.h"
#include "text/FontSet.h"
#include "ImageSet.h"
#include "Information.h"
#include "Logger.h"
#include "MaskManager.h"
#include "Music.h"
#include "PlayerInfo.h"
#include "Politics.h"
#include "Random.h"
#include "Sprite.h"
#include "SpriteQueue.h"
#include "SpriteSet.h"
#include "StarField.h"

#include <algorithm>
#include <iterator>
Expand Down
3 changes: 0 additions & 3 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "ConversationPanel.h"
#include "DataFile.h"
#include "DataNode.h"
#include "DataWriter.h"
#include "Dialog.h"
#include "Files.h"
#include "text/Font.h"
#include "FrameTimer.h"
#include "GameData.h"
#include "GameLoadingPanel.h"
#include "GameWindow.h"
#include "Hardpoint.h"
#include "Logger.h"
#include "MenuPanel.h"
#include "Panel.h"
Expand Down

0 comments on commit 21adffc

Please sign in to comment.