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:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user