Remove the now unused functionWrapperCPPSpecificMarkFirstParam()

There is no need to set c:objstruct for the first parameter of the methods now
that we take care of it for disambiguating between overloads explicitly and
this function doesn't seem to be useful for anything else, simply drop it.
This commit is contained in:
Vadim Zeitlin 2016-04-21 23:37:10 +02:00
commit 0480694a7a

View file

@ -1079,23 +1079,6 @@ ready:
DelWrapper(wrapper);
}
virtual void functionWrapperCPPSpecificMarkFirstParam(Node *n)
{
bool is_global = IS_SET_TO_ONE(n, "c:globalfun"); // possibly no longer neede
String *storage = Getattr(n, "storage");
ParmList *parms = Getattr(n, "parms");
// mark the first parameter as object-struct
if (!is_global && storage && (Cmp(storage, "static") != 0)) {
if (IS_SET_TO_ONE(n, "ismember") &&
(Cmp(nodeType(n), "constructor") != 0)) {
Setattr(parms, "c:objstruct", "1");
if (!Getattr(parms, "lname"))
Setattr(parms, "lname", "arg1");
}
}
}
virtual void functionWrapperCPPSpecific(Node *n)
{
// Use special actions for special methods if set up.
@ -1110,8 +1093,6 @@ ready:
SwigType *type = Getattr(n, "type");
SwigType *tdtype = NULL;
functionWrapperCPPSpecificMarkFirstParam(n);
// mangle name if function is overloaded
if (Getattr(n, "sym:overloaded")) {
if (!Getattr(n, "copy_constructor")) {