From e0426d01bee8ebd486c495e51c1845e6e94d4d84 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 30 Jan 2014 15:34:00 +0900 Subject: [PATCH] Remove unused method devutil.startProp(). It was probably added by mistake. --- lib/util/devutil.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lib/util/devutil.js b/lib/util/devutil.js index 802ed028..fda873f0 100644 --- a/lib/util/devutil.js +++ b/lib/util/devutil.js @@ -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':