Removed unused parameter.

This commit is contained in:
rogerl%netscape.com 2001-02-01 01:06:53 +00:00
parent f13e0741a0
commit 23fda0a73e
4 changed files with 8 additions and 8 deletions

View File

@ -2580,7 +2580,7 @@ Formatter& operator<<(Formatter &f, string &s)
return f;
}
ICodeModule *ICodeGenerator::readFunction(XMLNode *element, String &name, JSClass *thisClass)
ICodeModule *ICodeGenerator::readFunction(XMLNode *element, JSClass *thisClass)
{
ICodeModule *result = NULL;
@ -2670,7 +2670,7 @@ ICodeModule *ICodeGenerator::readICode(const char *fileName)
if (isConstructor || (element->name().compare(widenCString("method")) == 0)) {
String methodName;
node->getValue(widenCString("name"), methodName);
ICodeModule *icm = readFunction(element, methodName, thisClass);
ICodeModule *icm = readFunction(element, thisClass);
if (icm) {
if (isConstructor) {
thisClass->defineConstructor(methodName);
@ -2731,7 +2731,7 @@ ICodeModule *ICodeGenerator::readICode(const char *fileName)
if (node->name().compare(widenCString("function")) == 0) {
String functionName;
node->getValue(widenCString("name"), functionName);
ICodeModule *icm = readFunction(node, functionName, NULL);
ICodeModule *icm = readFunction(node, NULL);
mContext->getGlobalObject()->defineFunction(functionName, icm);
}
else {

View File

@ -285,7 +285,7 @@ namespace ICG {
ICodeModule *genFunction(FunctionDefinition &function, bool isStatic, bool isConstructor, JSClass *superClass);
ICodeModule *readFunction(XMLNode *element, String &name, JSClass *thisClass);
ICodeModule *readFunction(XMLNode *element, JSClass *thisClass);
public:

View File

@ -2580,7 +2580,7 @@ Formatter& operator<<(Formatter &f, string &s)
return f;
}
ICodeModule *ICodeGenerator::readFunction(XMLNode *element, String &name, JSClass *thisClass)
ICodeModule *ICodeGenerator::readFunction(XMLNode *element, JSClass *thisClass)
{
ICodeModule *result = NULL;
@ -2670,7 +2670,7 @@ ICodeModule *ICodeGenerator::readICode(const char *fileName)
if (isConstructor || (element->name().compare(widenCString("method")) == 0)) {
String methodName;
node->getValue(widenCString("name"), methodName);
ICodeModule *icm = readFunction(element, methodName, thisClass);
ICodeModule *icm = readFunction(element, thisClass);
if (icm) {
if (isConstructor) {
thisClass->defineConstructor(methodName);
@ -2731,7 +2731,7 @@ ICodeModule *ICodeGenerator::readICode(const char *fileName)
if (node->name().compare(widenCString("function")) == 0) {
String functionName;
node->getValue(widenCString("name"), functionName);
ICodeModule *icm = readFunction(node, functionName, NULL);
ICodeModule *icm = readFunction(node, NULL);
mContext->getGlobalObject()->defineFunction(functionName, icm);
}
else {

View File

@ -285,7 +285,7 @@ namespace ICG {
ICodeModule *genFunction(FunctionDefinition &function, bool isStatic, bool isConstructor, JSClass *superClass);
ICodeModule *readFunction(XMLNode *element, String &name, JSClass *thisClass);
ICodeModule *readFunction(XMLNode *element, JSClass *thisClass);
public: