From b0fdf70de2e92359058faf149185833fb9edda71 Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Wed, 9 Apr 2014 18:36:07 -0700 Subject: [PATCH] get rid of 'mobile: location' --- lib/server/controller.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lib/server/controller.js b/lib/server/controller.js index 00bdb4c64..2751f5588 100644 --- a/lib/server/controller.js +++ b/lib/server/controller.js @@ -524,32 +524,6 @@ exports.mobileShake = function (req, res) { req.device.shake(getResponseHandler(req, res)); }; -exports.mobileSetLocation = function (req, res) { - logCustomDeprecationWarning("mobile method", "mobile: location", - "mobile: location is deprecated and will be removed"); - req.body = _.defaults(req.body, { - latitude: null - , longitude: null - , altitude: null - , horizontalAccuracy: null - , verticalAccuracy: null - , course: null - , speed: null - }); - var latitude = req.body.latitude - , longitude = req.body.longitude - , altitude = req.body.altitude - , horizontalAccuracy = req.body.horizontalAccuracy - , verticalAccuracy = req.body.verticalAccuracy - , course = req.body.course - , speed = req.body.speed; - - if (checkMissingParams(res, {latitude: latitude, longitude: longitude})) { - req.device.setLocation(latitude, longitude, altitude, horizontalAccuracy, - verticalAccuracy, course, speed, getResponseHandler(req, res)); - } -}; - exports.hideKeyboard = function (req, res) { var keyName = req.body.keyName; @@ -1089,7 +1063,6 @@ var mobileCmdMap = { , 'scrollTo': exports.mobileScrollTo , 'scroll': exports.mobileScroll , 'shake': exports.mobileShake -, 'setLocation' : exports.mobileSetLocation , 'hideKeyboard': exports.hideKeyboard , 'setCommandTimeout': exports.setCommandTimeout , 'getCommandTimeout': exports.getCommandTimeout