From 0d3169c787d6840d45af0bd65b6663617663a0d6 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 27 Sep 2016 12:05:18 -0700 Subject: [PATCH] remove mailboxdb.listGroups --- src/mailboxdb.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/mailboxdb.js b/src/mailboxdb.js index d23381e0c..a33a77056 100644 --- a/src/mailboxdb.js +++ b/src/mailboxdb.js @@ -6,7 +6,7 @@ exports = module.exports = { listAliases: listAliases, listMailboxes: listMailboxes, - listGroups: listGroups, + // listGroups: listGroups, // this is beyond my SQL skillz getMailbox: getMailbox, getGroup: getGroup, @@ -115,18 +115,6 @@ function getGroup(name, callback) { }); } -function listGroups(callback) { - assert.strictEqual(typeof callback, 'function'); - - // FIXME: fix the query to return members - database.query('SELECT ' + MAILBOX_FIELDS + ' FROM mailboxes WHERE ownerType = ?', - [ exports.TYPE_GROUP ], function (error, results) { - if (error) return callback(new DatabaseError(DatabaseError.INTERNAL_ERROR, error)); - - callback(null, results); - }); -} - function getByOwnerId(ownerId, callback) { assert.strictEqual(typeof ownerId, 'string'); assert.strictEqual(typeof callback, 'function');