removing the unused CallNode#push

This commit is contained in:
Jeremy Ashkenas
2010-03-10 20:53:31 -05:00
parent 7b0a235c71
commit 3f9fd85afb
2 changed files with 0 additions and 12 deletions

View File

@@ -433,12 +433,6 @@
this.prefix = 'new '; this.prefix = 'new ';
return this; return this;
}; };
// Add an argument to the call's arugment list.
CallNode.prototype.push = function push(arg) {
this.args.push(arg);
this.children.push(arg);
return this;
};
// Compile a vanilla function call. // Compile a vanilla function call.
CallNode.prototype.compile_node = function compile_node(o) { CallNode.prototype.compile_node = function compile_node(o) {
var _a, _b, _c, _d, arg, args; var _a, _b, _c, _d, arg, args;

View File

@@ -334,12 +334,6 @@ exports.CallNode: class CallNode extends BaseNode
@prefix: 'new ' @prefix: 'new '
this this
# Add an argument to the call's arugment list.
push: (arg) ->
@args.push(arg)
@children.push(arg)
this
# Compile a vanilla function call. # Compile a vanilla function call.
compile_node: (o) -> compile_node: (o) ->
return @compile_splat(o) if @args[@args.length - 1] instanceof SplatNode return @compile_splat(o) if @args[@args.length - 1] instanceof SplatNode