Skip to content

Commit

Permalink
Removed unused file task, needless indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Aug 11, 2012
1 parent 1046338 commit 500f7a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 84 deletions.
2 changes: 1 addition & 1 deletion lib/task/directory_task.js
Expand Up @@ -20,7 +20,7 @@ DirectoryTask = function (name) {
// Do constructor-work only on actual instances, not when used // Do constructor-work only on actual instances, not when used
// for inheritance // for inheritance
if (arguments.length) { if (arguments.length) {
this.constructor.prototype.init.apply(this, arguments); this.init.apply(this, arguments);
} }
}; };
DirectoryTask.prototype = new FileTask(); DirectoryTask.prototype = new FileTask();
Expand Down
2 changes: 1 addition & 1 deletion lib/task/file_task.js
Expand Up @@ -116,7 +116,7 @@ FileTask = function (name, prereqs, action, opts) {
// Do constructor-work only on actual instances, not when used // Do constructor-work only on actual instances, not when used
// for inheritance // for inheritance
if (arguments.length) { if (arguments.length) {
this.constructor.prototype.init.apply(this, arguments); this.init.apply(this, arguments);
} }
}; };
FileTask.prototype = new Task(); FileTask.prototype = new Task();
Expand Down
2 changes: 1 addition & 1 deletion lib/task/task.js
Expand Up @@ -30,7 +30,7 @@ Task = function () {
// Do constructor-work only on actual instances, not when used // Do constructor-work only on actual instances, not when used
// for inheritance // for inheritance
if (arguments.length) { if (arguments.length) {
this.constructor.prototype.init.apply(this, arguments); this.init.apply(this, arguments);
} }
}; };


Expand Down
81 changes: 0 additions & 81 deletions test/file_utils.js

This file was deleted.

0 comments on commit 500f7a3

Please sign in to comment.