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:
parent
8e30abf7ab
commit
0480694a7a
1 changed files with 0 additions and 19 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue