Skip to content

Commit 1beed48

Browse files
committed
Bug 1845563 - Clean up client side Pocket API r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D184610
1 parent 15de925 commit 1beed48

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

browser/components/pocket/content/pktApi.sys.mjs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -474,30 +474,6 @@ export var pktApi = (function () {
474474
});
475475
}
476476

477-
/**
478-
* Gets a list of related recommendations for the item
479-
* @param {string} itemId Item id of item
480-
* @param {Object | undefined} options Can provide a string-based title, a
481-
* `success` callback and an `error` callback.
482-
* @return {Boolean} Returns Boolean whether the api call started sucessfully
483-
*/
484-
function getRecsForItem(itemId, options) {
485-
return apiRequest({
486-
path: "/discover/recIt",
487-
data: {
488-
item_id: itemId,
489-
module: "ff_plugin",
490-
count: 3,
491-
},
492-
success(data) {
493-
if (options.success) {
494-
options.success.apply(options, Array.apply(null, arguments));
495-
}
496-
},
497-
error: options.error,
498-
});
499-
}
500-
501477
/**
502478
* Get a preview for saved URL
503479
* @param {string} url URL of the link
@@ -907,7 +883,6 @@ export var pktApi = (function () {
907883
isUserLoggedIn,
908884
clearUserData,
909885
addLink,
910-
getRecsForItem,
911886
deleteItem,
912887
archiveItem,
913888
addTagsToItem,

0 commit comments

Comments
 (0)