[Matlab] Remove partial implementations of unneeded methods
This commit is contained in:
parent
ad7a02d0e9
commit
a8c6158543
7 changed files with 1 additions and 47 deletions
|
|
@ -50,9 +50,6 @@ void flowdevicemethods(int nlhs, mxArray* plhs[],
|
|||
case 5:
|
||||
iok = flowdev_setFunction(i, int(v));
|
||||
break;
|
||||
case 6:
|
||||
iok = flowdev_ready(i);
|
||||
break;
|
||||
case 7:
|
||||
iok = flowdev_setMaster(i, int(v));
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -47,9 +47,6 @@ void mixturemethods(int nlhs, mxArray* plhs[],
|
|||
case 1:
|
||||
iok = mix_del(i);
|
||||
break;
|
||||
case 2:
|
||||
iok = mix_copy(i);
|
||||
break;
|
||||
case 4:
|
||||
checkNArgs(5, nrhs);
|
||||
moles = getDouble(prhs[4]);
|
||||
|
|
|
|||
|
|
@ -139,13 +139,6 @@ void phasemethods(int nlhs, mxArray* plhs[],
|
|||
reportError();
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
vv = phase_density(ph);
|
||||
if (vv == DERR) {
|
||||
reportError();
|
||||
}
|
||||
vv = 1.0/vv;
|
||||
break;
|
||||
case 10:
|
||||
vv = static_cast<int>(phase_nElements(ph));
|
||||
if (vv == -1) {
|
||||
|
|
|
|||
|
|
@ -39,9 +39,6 @@ void reactormethods(int nlhs, mxArray* plhs[],
|
|||
case 1:
|
||||
iok = reactor_del(i);
|
||||
break;
|
||||
case 2:
|
||||
iok = reactor_copy(i);
|
||||
break;
|
||||
case 4:
|
||||
iok = reactor_setInitialVolume(i, v);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -43,9 +43,6 @@ void reactornetmethods(int nlhs, mxArray* plhs[],
|
|||
case 1:
|
||||
iok = reactornet_del(i);
|
||||
break;
|
||||
case 2:
|
||||
iok = reactornet_copy(i);
|
||||
break;
|
||||
case 4:
|
||||
iok = reactornet_addreactor(i, int(v));
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -39,9 +39,6 @@ void wallmethods(int nlhs, mxArray* plhs[],
|
|||
case 1:
|
||||
iok = wall_del(i);
|
||||
break;
|
||||
case 2:
|
||||
iok = wall_copy(i);
|
||||
break;
|
||||
case 4:
|
||||
m = getInt(prhs[4]);
|
||||
iok = wall_install(i, int(v), m);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ static bool nargs_ok(int job, int n)
|
|||
void xmlmethods(int nlhs, mxArray* plhs[],
|
||||
int nrhs, const mxArray* prhs[])
|
||||
{
|
||||
int j, m, iok = 0;
|
||||
int iok = 0;
|
||||
char* file, *key, *val, *nm;
|
||||
int job = getInt(prhs[1]);
|
||||
int i = getInt(prhs[2]);
|
||||
|
|
@ -65,26 +65,14 @@ void xmlmethods(int nlhs, mxArray* plhs[],
|
|||
case 1:
|
||||
iok = xml_del(i);
|
||||
break;
|
||||
case 2:
|
||||
iok = xml_copy(i);
|
||||
break;
|
||||
case 4:
|
||||
file = getString(prhs[3]);
|
||||
iok = xml_build(i, file);
|
||||
break;
|
||||
case 5:
|
||||
key = getString(prhs[3]);
|
||||
val = getString(prhs[4]);
|
||||
iok = xml_addAttrib(i, key, val);
|
||||
break;
|
||||
case 6:
|
||||
key = getString(prhs[3]);
|
||||
iok = xml_child(i, key);
|
||||
break;
|
||||
case 7:
|
||||
m = getInt(prhs[3]);
|
||||
iok = xml_child_bynumber(i, m);
|
||||
break;
|
||||
case 8:
|
||||
key = getString(prhs[3]);
|
||||
iok = xml_findID(i, key);
|
||||
|
|
@ -101,19 +89,10 @@ void xmlmethods(int nlhs, mxArray* plhs[],
|
|||
val = getString(prhs[4]);
|
||||
iok = xml_addChild(i, key, val);
|
||||
break;
|
||||
case 12:
|
||||
key = getString(prhs[3]);
|
||||
j = getInt(prhs[4]);
|
||||
iok = xml_addChildNode(i, j);
|
||||
break;
|
||||
case 13:
|
||||
file = getString(prhs[3]);
|
||||
iok = xml_write(i, file);
|
||||
break;
|
||||
case 14:
|
||||
j = getInt(prhs[3]);
|
||||
iok = xml_removeChild(i, j);
|
||||
break;
|
||||
case 15:
|
||||
file = getString(prhs[3]);
|
||||
iok = xml_get_XML_File(file, 0);
|
||||
|
|
@ -142,9 +121,6 @@ void xmlmethods(int nlhs, mxArray* plhs[],
|
|||
// return the value of the node
|
||||
iok = xml_value(i, v);
|
||||
break;
|
||||
case 22:
|
||||
iok = xml_tag(i, v);
|
||||
break;
|
||||
default:
|
||||
mexErrMsgTxt("unknown job parameter");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue