@@ -1617,42 +1617,6 @@ var SpotifyWebApi = (function () {
1617
1617
return _checkParamsAndPerformRequest ( requestData , options , callback ) ;
1618
1618
} ;
1619
1619
1620
- /**
1621
- * Add a track to the queue on the user's active device
1622
- * See [Add an Item to the User's Playback Queue](https://developer.spotify.com/documentation/web-api/reference/player/add-to-queue/) on
1623
- * the Spotify Developer site for more information about the endpoint.
1624
- *
1625
- * @param {string } track_uri The track to add to the queue
1626
- * @param {Object } options A JSON object with options that can be passed.
1627
- * @param {function(Object,Object) } callback An optional callback that receives 2 parameters. The first
1628
- * one is the error object (null if no error), and the second is the value if the request succeeded.
1629
- * @return {Object } Null if a callback is provided, a `Promise` object otherwise
1630
- */
1631
- Constr . prototype . queue = function ( track_uri , options , callback ) {
1632
- options = options || { } ;
1633
- var params =
1634
- 'device_id' in options ? { device_id : options . device_id } : null ;
1635
- if ( 'device_id' in options ) {
1636
- params = {
1637
- uri : track_uri ,
1638
- device_id : options . device_id
1639
- } ;
1640
- } else {
1641
- params = {
1642
- uri : track_uri
1643
- } ;
1644
- }
1645
- var requestData = {
1646
- type : 'POST' ,
1647
- url : _baseUri + '/me/player/queue' ,
1648
- params : params
1649
- } ;
1650
-
1651
- // need to clear options so it doesn't add all of them to the query params
1652
- var newOptions = typeof options === 'function' ? options : { } ;
1653
- return _checkParamsAndPerformRequest ( requestData , newOptions , callback ) ;
1654
- } ;
1655
-
1656
1620
/**
1657
1621
* Play a track on the user's active device
1658
1622
* See [Start/Resume a User's Playback](https://developer.spotify.com/documentation/web-api/reference/player/start-a-users-playback/) on
0 commit comments