Skip to content

Commit

Permalink
remove buildTargets list and get since is not being used in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed Oct 24, 2024
1 parent ec1bb51 commit 59fa92c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
9 changes: 0 additions & 9 deletions src/cmd/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ module.exports = class ParticleApi {
);
}

listBuildTargets(onlyFeatured){
return this._wrap(
this.api.listBuildTargets({
onlyFeatured,
auth: this.accessToken
})
);
}

listDeviceOsVersions(platformId, internalVersion, perPage=100){
return this._wrap(
this.api.listDeviceOsVersions({
Expand Down
25 changes: 0 additions & 25 deletions src/lib/api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,31 +898,6 @@ module.exports = class ApiClient {
});
}

getBuildTargets(){
return new Promise((resolve, reject) => {
const options = {
uri: '/v1/build_targets',
qs: {
featured: true
},
method: 'GET',
json: true
};

this.request(options, (error, response, body) => {
if (error){
return reject(error);
}

if (this.hasBadToken(body)){
return reject('Invalid token');
}

resolve(body);
});
});
}

getClaimCode(){
return new Promise((resolve, reject) => {
const options = {
Expand Down

0 comments on commit 59fa92c

Please sign in to comment.