Skip to content

Commit 9dd5c74

Browse files
Maullerxezon
authored andcommitted
chore(string): Remove unused removeExtension() function from GameState.cpp (TheSuperHackers#2635)
1 parent a9b260a commit 9dd5c74

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

  • GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame
  • Generals/Code/GameEngine/Source/Common/System/SaveGame

Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -843,18 +843,6 @@ static AsciiString getMapLeafAndDirName(const AsciiString& in)
843843
}
844844
}
845845

846-
// ------------------------------------------------------------------------------------------------
847-
static AsciiString removeExtension(const AsciiString& in)
848-
{
849-
if (const char* end = in.reverseFind('.'))
850-
{
851-
const char* begin = in.str();
852-
return AsciiString(begin, end - begin);
853-
}
854-
855-
return in;
856-
}
857-
858846
// ------------------------------------------------------------------------------------------------
859847
const char* PORTABLE_SAVE = "Save\\";
860848
const char* PORTABLE_MAPS = "Maps\\";

GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -843,18 +843,6 @@ static AsciiString getMapLeafAndDirName(const AsciiString& in)
843843
}
844844
}
845845

846-
// ------------------------------------------------------------------------------------------------
847-
static AsciiString removeExtension(const AsciiString& in)
848-
{
849-
if (const char* end = in.reverseFind('.'))
850-
{
851-
const char* begin = in.str();
852-
return AsciiString(begin, end - begin);
853-
}
854-
855-
return in;
856-
}
857-
858846
// ------------------------------------------------------------------------------------------------
859847
const char* PORTABLE_SAVE = "Save\\";
860848
const char* PORTABLE_MAPS = "Maps\\";

0 commit comments

Comments
 (0)