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 CE1C5DB8D for ; Tue, 21 Aug 2012 14:36:08 +0000 (UTC) Received: (qmail 5287 invoked by uid 500); 21 Aug 2012 14:36:08 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 5239 invoked by uid 500); 21 Aug 2012 14:36:08 -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 5231 invoked by uid 99); 21 Aug 2012 14:36:08 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 14:36:08 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C23DD1EA8E; Tue, 21 Aug 2012 14:36:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: macdonst@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: js commit: Common: Remove dead code MediaFile.cast Message-Id: <20120821143607.C23DD1EA8E@tyr.zones.apache.org> Date: Tue, 21 Aug 2012 14:36:07 +0000 (UTC) Updated Branches: refs/heads/master 7b33b31a9 -> ec617ee56 Common: Remove dead code MediaFile.cast I've deleted the MediaFile.cast method as it is dead code. I confirmed that there is no ill effects on Android from it's removal. I reviewed iOS and BB and it doesn't appear that they call it either. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/ec617ee5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/ec617ee5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/ec617ee5 Branch: refs/heads/master Commit: ec617ee5652d8ad7d8bd2c7f112e11c6ecb40f83 Parents: 7b33b31 Author: macdonst Authored: Tue Aug 21 10:33:17 2012 -0400 Committer: macdonst Committed: Tue Aug 21 10:33:21 2012 -0400 ---------------------------------------------------------------------- lib/common/plugin/MediaFile.js | 22 ---------------------- 1 files changed, 0 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/ec617ee5/lib/common/plugin/MediaFile.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/MediaFile.js b/lib/common/plugin/MediaFile.js index 5118e86..a04967a 100644 --- a/lib/common/plugin/MediaFile.js +++ b/lib/common/plugin/MediaFile.js @@ -31,26 +31,4 @@ MediaFile.prototype.getFormatData = function(successCallback, errorCallback) { } }; -// TODO: can we axe this? -/** - * Casts a PluginResult message property (array of objects) to an array of MediaFile objects - * (used in Objective-C and Android) - * - * @param {PluginResult} pluginResult - */ -MediaFile.cast = function(pluginResult) { - var mediaFiles = []; - for (var i=0; i