Browse Source

Remove unused code

Ivan Savenko 2 years ago
parent
commit
27442e2950
3 changed files with 1 additions and 11 deletions
  1. 0 4
      lib/CCreatureHandler.h
  2. 0 6
      lib/CHeroHandler.h
  3. 1 1
      lib/CTownHandler.h

+ 0 - 4
lib/CCreatureHandler.h

@@ -33,10 +33,6 @@ class DLL_LINKAGE CCreature : public Creature, public CBonusSystemNode
 	std::string modScope;
 	std::string identifier;
 
-//	std::string nameRef; // reference name, stringID
-//	std::string nameSing;// singular name, e.g. Centaur
-//	std::string namePl;  // plural name, e.g. Centaurs
-
 	std::string getNameTranslated() const override;
 	std::string getNameTextID() const override;
 

+ 0 - 6
lib/CHeroHandler.h

@@ -63,8 +63,6 @@ class DLL_LINKAGE CHero : public HeroType
 	HeroTypeID ID;
 	std::string identifier;
 	std::string modScope;
-	std::string nameTextID; //name of hero
-	std::string biographyTextID;
 
 public:
 	struct InitialArmyStack
@@ -137,8 +135,6 @@ public:
 		h & haveSpellBook;
 		h & sex;
 		h & special;
-		h & nameTextID;
-		h & biographyTextID;
 		h & iconSpecSmall;
 		h & iconSpecLarge;
 		h & portraitSmall;
@@ -159,7 +155,6 @@ class DLL_LINKAGE CHeroClass : public HeroClass
 	HeroClassID id; // use getId instead
 	std::string modScope;
 	std::string identifier; // use getJsonKey instead
-	std::string nameTextID;
 
 public:
 	enum EClassAffinity
@@ -212,7 +207,6 @@ public:
 	{
 		h & modScope;
 		h & identifier;
-		h & nameTextID;
 		h & faction;
 		h & id;
 		h & defaultTavernChance;

+ 1 - 1
lib/CTownHandler.h

@@ -186,7 +186,7 @@ class DLL_LINKAGE CFaction : public Faction
 	friend class CBuilding;
 	friend class CTown;
 
-	std::string modScope; //town name, by default - from TownName.txt
+	std::string modScope;
 	std::string identifier;
 
 	TFaction index;