mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Remove old utility methods.
This commit is contained in:
@@ -73,38 +73,6 @@ var wireutil = {
|
||||
)
|
||||
))
|
||||
}
|
||||
, makeDevicePropertiesMessage: function(serial, properties) {
|
||||
return wireutil.envelope(new wire.DevicePropertiesMessage(
|
||||
serial
|
||||
, Object.keys(properties).map(function(key) {
|
||||
return new wire.DeviceProperty(key, properties[key])
|
||||
})
|
||||
))
|
||||
}
|
||||
, makeShellCommandMessage: function(channel, command) {
|
||||
return wireutil.envelope(new wire.ShellCommandMessage(
|
||||
channel
|
||||
, command
|
||||
))
|
||||
}
|
||||
, makeShellCommandDataMessage: function(serial, seq, chunk) {
|
||||
return wireutil.envelope(new wire.ShellCommandDataMessage(
|
||||
serial
|
||||
, seq
|
||||
, chunk
|
||||
))
|
||||
}
|
||||
, makeShellCommandDoneMessage: function(serial) {
|
||||
return wireutil.envelope(new wire.ShellCommandDoneMessage(
|
||||
serial
|
||||
))
|
||||
}
|
||||
, makeShellCommandFailMessage: function(serial, reason) {
|
||||
return wireutil.envelope(new wire.ShellCommandFailMessage(
|
||||
serial
|
||||
, reason
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = wireutil
|
||||
|
||||
Reference in New Issue
Block a user