1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Remove old utility methods.

This commit is contained in:
Simo Kinnunen 2014-02-26 20:48:35 +09:00
parent b9cec82941
commit 08be119883

View file

@ -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