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');