diff --git a/source/BoardingPanel.cpp b/source/BoardingPanel.cpp
index 9ad7f08d825e..491e4d039732 100644
--- a/source/BoardingPanel.cpp
+++ b/source/BoardingPanel.cpp
@@ -35,7 +35,6 @@ this program. If not, see .
#include "ShipEvent.h"
#include "ShipInfoPanel.h"
#include "System.h"
-#include "text/truncate.hpp"
#include "UI.h"
#include
diff --git a/source/ClickZone.h b/source/ClickZone.h
index 774a6a35472f..db97c2c3a5d8 100644
--- a/source/ClickZone.h
+++ b/source/ClickZone.h
@@ -19,7 +19,6 @@ this program. If not, see .
#include "Point.h"
#include "Rectangle.h"
-#include
#include
diff --git a/source/HailPanel.h b/source/HailPanel.h
index aa1caede0fa7..ddb429fdd0e9 100644
--- a/source/HailPanel.h
+++ b/source/HailPanel.h
@@ -19,7 +19,6 @@ this program. If not, see .
#include "Panel.h"
#include "Angle.h"
-#include "Point.h"
#include
#include
diff --git a/source/Hazard.h b/source/Hazard.h
index 66583387da26..5048f32d2476 100644
--- a/source/Hazard.h
+++ b/source/Hazard.h
@@ -18,8 +18,6 @@ this program. If not, see .
#include "Weapon.h"
-#include "Point.h"
-
// Hazards are environmental effects created within systems. They are able to create
// visual effects and damage or apply status effects to any ships within the system
diff --git a/source/MapDetailPanel.cpp b/source/MapDetailPanel.cpp
index 6acb4c1b838b..a879e9ef94d8 100644
--- a/source/MapDetailPanel.cpp
+++ b/source/MapDetailPanel.cpp
@@ -32,7 +32,6 @@ this program. If not, see .
#include "text/layout.hpp"
#include "MapOutfitterPanel.h"
#include "MapShipyardPanel.h"
-#include "pi.h"
#include "Planet.h"
#include "PlayerInfo.h"
#include "PointerShader.h"
diff --git a/source/MenuPanel.cpp b/source/MenuPanel.cpp
index ba7b132ad1dc..3fb2aacd892a 100644
--- a/source/MenuPanel.cpp
+++ b/source/MenuPanel.cpp
@@ -31,7 +31,6 @@ this program. If not, see .
#include "PlayerInfo.h"
#include "Point.h"
#include "PreferencesPanel.h"
-#include "Rectangle.h"
#include "Ship.h"
#include "Sprite.h"
#include "StarField.h"
diff --git a/source/MissionPanel.cpp b/source/MissionPanel.cpp
index a4dbb21e1c0b..215acec07571 100644
--- a/source/MissionPanel.cpp
+++ b/source/MissionPanel.cpp
@@ -29,7 +29,6 @@ this program. If not, see .
#include "GameData.h"
#include "Information.h"
#include "Interface.h"
-#include "text/layout.hpp"
#include "LineShader.h"
#include "Mission.h"
#include "Planet.h"
diff --git a/source/OutfitterPanel.cpp b/source/OutfitterPanel.cpp
index 8806d6b3416d..6136644c4066 100644
--- a/source/OutfitterPanel.cpp
+++ b/source/OutfitterPanel.cpp
@@ -25,7 +25,6 @@ this program. If not, see .
#include "text/Format.h"
#include "GameData.h"
#include "Hardpoint.h"
-#include "text/layout.hpp"
#include "Mission.h"
#include "Outfit.h"
#include "Planet.h"
diff --git a/source/PreferencesPanel.cpp b/source/PreferencesPanel.cpp
index 8abce2f4f643..64ccf0a721b5 100644
--- a/source/PreferencesPanel.cpp
+++ b/source/PreferencesPanel.cpp
@@ -26,7 +26,6 @@ this program. If not, see .
#include "GameData.h"
#include "Information.h"
#include "Interface.h"
-#include "text/layout.hpp"
#include "Plugins.h"
#include "Preferences.h"
#include "Screen.h"
diff --git a/source/SpaceportPanel.cpp b/source/SpaceportPanel.cpp
index b542fcc5e182..de4977aec74b 100644
--- a/source/SpaceportPanel.cpp
+++ b/source/SpaceportPanel.cpp
@@ -16,14 +16,12 @@ this program. If not, see .
#include "SpaceportPanel.h"
#include "text/alignment.hpp"
-#include "Color.h"
#include "text/FontSet.h"
#include "GameData.h"
#include "Interface.h"
#include "News.h"
#include "Planet.h"
#include "PlayerInfo.h"
-#include "Point.h"
#include "Random.h"
#include "UI.h"
diff --git a/source/comparators/BySeriesAndIndex.h b/source/comparators/BySeriesAndIndex.h
index b4250a517b86..408b83247827 100644
--- a/source/comparators/BySeriesAndIndex.h
+++ b/source/comparators/BySeriesAndIndex.h
@@ -16,7 +16,6 @@ this program. If not, see .
#ifndef BY_SERIES_AND_INDEX_H_
#define BY_SERIES_AND_INDEX_H_
-#include "../CategoryList.h"
#include "../CategoryTypes.h"
#include "../GameData.h"
#include "../Outfit.h"
diff --git a/source/text/WrappedText.cpp b/source/text/WrappedText.cpp
index ca840edeac04..c5e9e8a53211 100644
--- a/source/text/WrappedText.cpp
+++ b/source/text/WrappedText.cpp
@@ -152,7 +152,7 @@ int WrappedText::Height() const
// Return the width of the longest line of the wrapped text.
int WrappedText::LongestLineWidth() const
{
- return longesLineWidth;
+ return longestLineWidth;
}
@@ -213,7 +213,7 @@ void WrappedText::SetText(const char *it, size_t length)
void WrappedText::Wrap()
{
height = 0;
- longesLineWidth = 0;
+ longestLineWidth = 0;
if(text.empty() || !font)
return;
@@ -323,8 +323,8 @@ void WrappedText::AdjustLine(size_t &lineBegin, int &lineWidth, bool isEnd)
int wordCount = static_cast(words.size() - lineBegin);
int extraSpace = wrapWidth - lineWidth;
- if(lineWidth > longesLineWidth)
- longesLineWidth = lineWidth;
+ if(lineWidth > longestLineWidth)
+ longestLineWidth = lineWidth;
// Figure out how much space is left over. Depending on the alignment, we
// will add that space to the left, to the right, to both sides, or to the
diff --git a/source/text/WrappedText.h b/source/text/WrappedText.h
index 94ad3f52f506..7b4e5a641558 100644
--- a/source/text/WrappedText.h
+++ b/source/text/WrappedText.h
@@ -118,7 +118,7 @@ class WrappedText {
std::vector words;
int height = 0;
- int longesLineWidth = 0;
+ int longestLineWidth = 0;
};