mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Remove unused method devutil.startProp(). It was probably added by mistake.
This commit is contained in:
@@ -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) {
|
||||
switch (platform) {
|
||||
case 'android':
|
||||
|
||||
Reference in New Issue
Block a user