Skip to content

Commit

Permalink
Remove unused getCart/setCart undocumented functions (#55953)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig authored Sep 2, 2021
1 parent 6e50caa commit 167e554
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions client/lib/wpcom-undocumented/lib/undocumented.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,44 +876,6 @@ Undocumented.prototype.getSiteFeatures = function ( siteDomain, fn ) {
);
};

/**
* Get cart.
*
* @param {string} cartKey The cart's key.
* @param {Function} fn The callback function.
*/
Undocumented.prototype.getCart = function ( cartKey, fn ) {
debug( 'GET: /me/shopping-cart/:cart-key' );

return this._sendRequest(
{
path: '/me/shopping-cart/' + cartKey,
method: 'GET',
},
fn
);
};

/**
* Set cart.
*
* @param {string} cartKey The cart's key.
* @param {object} data The POST data.
* @param {Function} fn The callback function.
*/
Undocumented.prototype.setCart = function ( cartKey, data, fn ) {
debug( 'POST: /me/shopping-cart/:cart-key', data );

return this._sendRequest(
{
path: '/me/shopping-cart/' + cartKey,
method: 'POST',
body: data,
},
fn
);
};

/**
* Get a list of the user's stored cards
*
Expand Down

0 comments on commit 167e554

Please sign in to comment.