diff --git a/UI/WebServerResources/js/Contacts/AddressBook.service.js b/UI/WebServerResources/js/Contacts/AddressBook.service.js index d9c9daba5..e2e0ac94e 100644 --- a/UI/WebServerResources/js/Contacts/AddressBook.service.js +++ b/UI/WebServerResources/js/Contacts/AddressBook.service.js @@ -594,35 +594,6 @@ }); }; - /** - * @function $getCard - * @memberof AddressBook.prototype - * @desc Fetch the card attributes from the server. - * @returns a promise of the HTTP operation - */ - AddressBook.prototype.$getCard = function(cardId) { - var _this = this; - - return this.$id().then(function(addressbookId) { - var fullCard, - cachedCard = _.find(_this.$cards, function(data) { - return cardId == data.id; - }); - - if (cachedCard && cachedCard.$futureCardData) - // Full card is available - return cachedCard; - - fullCard = AddressBook.$Card.$find(addressbookId, cardId); - fullCard.$id().then(function(cardId) { - // Extend the Card object of the addressbook list with the full card description - if (cachedCard) - angular.extend(cachedCard, fullCard); - }); - return fullCard; - }); - }; - /** * @function $exportCards * @memberof AddressBook.prototype