Commit 7370abab authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused function Assemble

parent 08bc36f6
...@@ -2415,15 +2415,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2415,15 +2415,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
cBaseOperator.prototype.Calculate = function () { cBaseOperator.prototype.Calculate = function () {
return null; return null;
}; };
cBaseOperator.prototype.Assemble = function (arg) {
var str = "";
if (this.argumentsCurrent === 2) {
str = arg[0] + "" + this.name + "" + arg[1];
} else {
str = this.name + "" + arg[0];
}
return new cString(str);
};
cBaseOperator.prototype.Assemble2 = function (arg, start, count) { cBaseOperator.prototype.Assemble2 = function (arg, start, count) {
var str = ""; var str = "";
if (this.argumentsCurrent === 2) { if (this.argumentsCurrent === 2) {
...@@ -2472,19 +2463,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2472,19 +2463,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
cBaseFunction.prototype.Calculate = function () { cBaseFunction.prototype.Calculate = function () {
return new cError(cErrorType.wrong_name); return new cError(cErrorType.wrong_name);
}; };
cBaseFunction.prototype.Assemble = function (arg) {
var str = "";
for (var i = 0; i < arg.length; i++) {
str += arg[i].toString();
if (i !== arg.length - 1) {
str += ",";
}
}
if (this.isXLFN) {
return new cString("_xlfn." + this.name + "(" + str + ")");
}
return new cString(this.toString() + "(" + str + ")");
};
cBaseFunction.prototype.Assemble2 = function (arg, start, count) { cBaseFunction.prototype.Assemble2 = function (arg, start, count) {
var str = "", c = start + count - 1; var str = "", c = start + count - 1;
...@@ -2664,9 +2642,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2664,9 +2642,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
parentLeft.prototype.toString = function () { parentLeft.prototype.toString = function () {
return this.name; return this.name;
}; };
parentLeft.prototype.Assemble = function (arg) {
return new cString("(" + arg + ")");
};
parentLeft.prototype.Assemble2 = function (arg, start, count) { parentLeft.prototype.Assemble2 = function (arg, start, count) {
return new cString("(" + arg[start + count - 1] + ")"); return new cString("(" + arg[start + count - 1] + ")");
}; };
...@@ -2819,9 +2794,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2819,9 +2794,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
cUnarMinusOperator.prototype.toString = function () { // toString function cUnarMinusOperator.prototype.toString = function () { // toString function
return '-'; return '-';
}; };
cUnarMinusOperator.prototype.Assemble = function (arg) {
return new cString("-" + arg[0]);
};
cUnarMinusOperator.prototype.Assemble2 = function (arg, start, count) { cUnarMinusOperator.prototype.Assemble2 = function (arg, start, count) {
return new cString("-" + arg[start + count - 1]); return new cString("-" + arg[start + count - 1]);
}; };
...@@ -2854,9 +2826,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2854,9 +2826,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
cUnarPlusOperator.prototype.toString = function () { cUnarPlusOperator.prototype.toString = function () {
return '+'; return '+';
}; };
cUnarPlusOperator.prototype.Assemble = function (arg) {
return new cString("+" + arg[0]);
};
cUnarPlusOperator.prototype.Assemble2 = function (arg, start, count) { cUnarPlusOperator.prototype.Assemble2 = function (arg, start, count) {
return new cString("+" + arg[start + count - 1]); return new cString("+" + arg[start + count - 1]);
}; };
...@@ -2961,9 +2930,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara ...@@ -2961,9 +2930,6 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara
res.numFormat = 9; res.numFormat = 9;
return res; return res;
}; };
cPercentOperator.prototype.Assemble = function (arg) {
return new cString(arg[0] + this.name);
};
cPercentOperator.prototype.Assemble2 = function (arg, start, count) { cPercentOperator.prototype.Assemble2 = function (arg, start, count) {
return new cString(arg[start + count - 1] + this.name); return new cString(arg[start + count - 1] + this.name);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment