Skip to content

Commit

Permalink
Remove duplicated createStateAsync, deleteStateAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Mar 7, 2022
1 parent 7f47898 commit 58daed0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2046,10 +2046,6 @@ function sandBox(script, name, verbose, debug, context) {
}
});
},
createStateAsync: function (name, initValue, forceCreation, common, native) {
return new Promise((resolve, reject) =>
sandbox.createState(name, initValue, forceCreation, common, native, (err, id) => err ? reject(err) : resolve(id)));
},
deleteState: function (id, callback) {
// todo: check rights
// todo: also remove from "names"
Expand Down Expand Up @@ -2113,10 +2109,6 @@ function sandBox(script, name, verbose, debug, context) {
}
}
},
deleteStateAsync: function (id) {
return new Promise((resolve, reject) =>
sandbox.deleteState(id, (err, found) => err ? reject(err) : resolve(found)));
},
sendTo: function (_adapter, cmd, msg, callback) {
sandbox.verbose && sandbox.log(`sendTo(adapter=${_adapter}, cmd=${cmd}, msg=${JSON.stringify(msg)})`, 'info');
adapter.sendTo(_adapter, cmd, msg, callback);
Expand Down

0 comments on commit 58daed0

Please sign in to comment.