Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 402059916 for ; Tue, 3 Jan 2012 18:59:05 +0000 (UTC) Received: (qmail 81698 invoked by uid 500); 3 Jan 2012 18:59:05 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 81681 invoked by uid 500); 3 Jan 2012 18:59:05 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 81653 invoked by uid 99); 3 Jan 2012 18:59:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 18:59:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 18:59:01 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A622231576D; Tue, 3 Jan 2012 18:57:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bowserj@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [42/50] git commit: Remove old code. Message-Id: <20120103185711.A622231576D@tyr.zones.apache.org> Date: Tue, 3 Jan 2012 18:57:11 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Remove old code. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/0caca9ae Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/0caca9ae Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/0caca9ae Branch: refs/heads/master Commit: 0caca9ae5576e9699769c36f401112670afc6e26 Parents: 0bbcf5c Author: Bryce Curtis Authored: Wed Nov 9 15:46:45 2011 -0600 Committer: Bryce Curtis Committed: Wed Nov 9 15:46:45 2011 -0600 ---------------------------------------------------------------------- framework/assets/js/phonegap.js.base | 66 ----------------------------- 1 files changed, 0 insertions(+), 66 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/0caca9ae/framework/assets/js/phonegap.js.base ---------------------------------------------------------------------- diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index 3c1c6c6..01a61a5 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -50,21 +50,12 @@ if (typeof PhoneGap === "undefined") { * window.onunload */ -if (typeof(DeviceInfo) !== 'object') { - var DeviceInfo = {}; -} - /** * This represents the PhoneGap API itself, and provides a global namespace for accessing * information about the state of PhoneGap. * @class */ var PhoneGap = { - queue: { - ready: true, - commands: [], - timer: null - }, documentEventHandler: {}, // Collection of custom document event handlers windowEventHandler: {} // Collection of custom window event handlers }; @@ -207,11 +198,6 @@ PhoneGap.Channel.join = function(h, c) { }; /** - * Boolean flag indicating if the PhoneGap API is available and initialized. - */ // TODO: Remove this, it is unused here ... -jm -PhoneGap.available = DeviceInfo.uuid !== undefined; - -/** * Add an initialization function to a queue that ensures it will run and initialize * application constructors only once PhoneGap has been initialized. * @param {Function} func The function callback you want run once PhoneGap is initialized @@ -738,58 +724,6 @@ PhoneGap.callbackError = function(callbackId, args) { } }; - -/** - * Internal function used to dispatch the request to PhoneGap. It processes the - * command queue and executes the next command on the list. If one of the - * arguments is a JavaScript object, it will be passed on the QueryString of the - * url, which will be turned into a dictionary on the other end. - * @private - */ -// TODO: Is this used? -PhoneGap.run_command = function() { - if (!PhoneGap.available || !PhoneGap.queue.ready) { - return; - } - PhoneGap.queue.ready = false; - - var args = PhoneGap.queue.commands.shift(); - if (PhoneGap.queue.commands.length === 0) { - clearInterval(PhoneGap.queue.timer); - PhoneGap.queue.timer = null; - } - - var uri = []; - var dict = null; - var i; - for (i = 1; i < args.length; i++) { - var arg = args[i]; - if (arg === undefined || arg === null) { - arg = ''; - } - if (typeof(arg) === 'object') { - dict = arg; - } else { - uri.push(encodeURIComponent(arg)); - } - } - var url = "gap://" + args[0] + "/" + uri.join("/"); - if (dict !== null) { - var name; - var query_args = []; - for (name in dict) { - if (dict.hasOwnProperty(name) && (typeof (name) === 'string')) { - query_args.push(encodeURIComponent(name) + "=" + encodeURIComponent(dict[name])); - } - } - if (query_args.length > 0) { - url += "?" + query_args.join("&"); - } - } - document.location = url; - -}; - PhoneGap.JSCallbackPort = null; PhoneGap.JSCallbackToken = null;