mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
removing the unused CallNode#push
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user