diff options
author | John McLear <john@mclear.co.uk> | 2012-10-06 02:36:51 +0200 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-10-06 02:36:51 +0200 |
commit | 90373964d31c61013fff941459c84688170636a8 (patch) | |
tree | 766018071d3881f1b2b0de278b79ec52dfe0aaf1 /src/node/db | |
parent | db1a1a0e3e1a8b3c0a57ac8b1cb1b972bc811a56 (diff) | |
download | etherpad-lite-90373964d31c61013fff941459c84688170636a8.zip |
Remove two instances of the same function name
Both functions did the same thing, the first function was buggy. Might be worth someone looking through the history of this file and pointing out when I made this heinous error ;)
Diffstat (limited to 'src/node/db')
-rw-r--r-- | src/node/db/AuthorManager.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/node/db/AuthorManager.js b/src/node/db/AuthorManager.js index 2a6625c8..28b2dd91 100644 --- a/src/node/db/AuthorManager.js +++ b/src/node/db/AuthorManager.js @@ -141,22 +141,6 @@ exports.getAuthor = function (author, callback) db.get("globalAuthor:" + author, callback); } -/** - * Returns the Author Name of the author - * @param {String} author The id of the author - * @param {Function} callback callback(err, name) - */ - -exports.getAuthorName = function (authorID, callback) -{ - db.getSub("globalAuthor:" + author, ["name"], callback); - console.log(authorID); - db.getSub("globalAuthor:" + authorID, ["name"], function(err, authorName){ - if(ERR(err, callback)) return; - callback(null, {authorName: authorName}); - }); -} - /** |