Skip to content

Commit

Permalink
Got rid of fold.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jul 19, 2012
1 parent 31cb4a0 commit b24dec4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 31 deletions.
10 changes: 1 addition & 9 deletions lib/browser/asana.js
Expand Up @@ -486,7 +486,7 @@ require.define("/asana.coffee", function (require, module, exports, __dirname, _

require.define("/utils.coffee", function (require, module, exports, __dirname, __filename) {
(function() {
var clone, fold, fromByteArray, ioOptions, optName, utf8ToBytes, _;
var clone, fromByteArray, ioOptions, optName, utf8ToBytes, _;

_ = require("underscore");

Expand All @@ -512,10 +512,6 @@ require.define("/utils.coffee", function (require, module, exports, __dirname, _
return fromByteArray(utf8ToBytes(str));
};

fold = function(src, dst, fn) {
return _.reduce(src, fn, dst);
};

module.exports.clone = clone = _.clone;

module.exports.defaults = function(defaults, src) {
Expand Down Expand Up @@ -3340,10 +3336,6 @@ require.define("/objects.coffee", function (require, module, exports, __dirname,
workspace: {
model: src.Workspace
},
workspaces: {
collection: src.Workspaces,
scope: "task"
},
stories: {
collection: src.Stories,
scope: "task"
Expand Down
2 changes: 1 addition & 1 deletion lib/browser/asana.min.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions lib/node/objects.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions lib/node/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/node/utils.coffee
Expand Up @@ -17,9 +17,6 @@ utf8ToBytes = (str) ->
module.exports.b64 = (str) ->
fromByteArray utf8ToBytes(str)

fold = (src, dst, fn) ->
_.reduce src, fn, dst

module.exports.clone = clone = _.clone

module.exports.defaults = (defaults, src = {}) ->
Expand Down
10 changes: 1 addition & 9 deletions test/browser/files/bundle.js
Expand Up @@ -1118,7 +1118,7 @@ require.define("/asana.coffee", function (require, module, exports, __dirname, _

require.define("/utils.coffee", function (require, module, exports, __dirname, __filename) {
(function() {
var clone, fold, fromByteArray, ioOptions, optName, utf8ToBytes, _;
var clone, fromByteArray, ioOptions, optName, utf8ToBytes, _;

_ = require("underscore");

Expand All @@ -1144,10 +1144,6 @@ require.define("/utils.coffee", function (require, module, exports, __dirname, _
return fromByteArray(utf8ToBytes(str));
};

fold = function(src, dst, fn) {
return _.reduce(src, fn, dst);
};

module.exports.clone = clone = _.clone;

module.exports.defaults = function(defaults, src) {
Expand Down Expand Up @@ -3972,10 +3968,6 @@ require.define("/objects.coffee", function (require, module, exports, __dirname,
workspace: {
model: src.Workspace
},
workspaces: {
collection: src.Workspaces,
scope: "task"
},
stories: {
collection: src.Stories,
scope: "task"
Expand Down

0 comments on commit b24dec4

Please sign in to comment.