1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Remove unused method devutil.startProp(). It was probably added by mistake.

This commit is contained in:
Simo Kinnunen 2014-01-30 15:34:00 +09:00
parent e083855d61
commit e0426d01be

View file

@ -113,32 +113,6 @@ devutil.killProcsByComm = function(adb, serial, comm, bin, mode) {
}) })
} }
devutil.startProp = function(adb, serial, cmd) {
return adb.openTcpAsync(options.serial, port)
.then(function(conn) {
conn.end()
})
.catch(function(err) {
if (err.message === 'closed') {
var cmd = [
vendor.bin.dest
, '--lib', vendor.lib.dest
, '--listen-http', port
]
return adb.shellAsync(options.serial, cmd)
.then(function(out) {
out.on('end', function() {
log.fatal('')
})
})
}
else {
throw err
}
})
}
devutil.platform = function(platform) { devutil.platform = function(platform) {
switch (platform) { switch (platform) {
case 'android': case 'android':