Remove bool CardInstance::hasSubtype(const char * _subtype)

There exists bool CardInstance::hasSubtype(const string& _subtype) and the
const char* version converts _subtype into string deeper in the call
hierarchy anyway. So both methods did the same.
This commit is contained in:
Tobias Loose
2013-11-23 11:26:10 +01:00
parent 672b0be7bd
commit 3f0dd987f0
2 changed files with 0 additions and 7 deletions
-1
View File
@@ -101,7 +101,6 @@ public:
int removeType(string value, int removeAll = 0); int removeType(string value, int removeAll = 0);
int removeType(int value, int removeAll = 0); int removeType(int value, int removeAll = 0);
bool hasSubtype(int _subtype); bool hasSubtype(int _subtype);
bool hasSubtype(const char * _subtype);
bool hasSubtype(const string& _subtype); bool hasSubtype(const string& _subtype);
bool hasType(int _type); bool hasType(int _type);
bool hasType(const char * type); bool hasType(const char * type);
-6
View File
@@ -350,12 +350,6 @@ bool CardPrimitive::hasType(const char * _type)
return hasType(id); return hasType(id);
} }
bool CardPrimitive::hasSubtype(const char * _subtype)
{
int id = MTGAllCards::findType(_subtype);
return hasType(id);
}
bool CardPrimitive::hasSubtype(const string& _subtype) bool CardPrimitive::hasSubtype(const string& _subtype)
{ {
int id = MTGAllCards::findType(_subtype); int id = MTGAllCards::findType(_subtype);