From db1a744f1050b3c0751b638e3fab9156345c67a4 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 24 Oct 2012 06:19:51 -0700 Subject: [PATCH] Remove deprecated setFile() / getFile() from JX.Request Summary: I'll hold this for a bit just in case anyone in the wild is using Javelin to handle drag-and-drop uploads, but it sounds like we're clear in both Phabricator and Facebook. See D3727, D3769. Test Plan: What could go wrong? Reviewers: paulshen, mnml0 Reviewed By: mnml0 CC: aran Differential Revision: https://secure.phabricator.com/D3770 --- src/lib/Request.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/lib/Request.js b/src/lib/Request.js index 35410ed..6562d40 100644 --- a/src/lib/Request.js +++ b/src/lib/Request.js @@ -342,24 +342,6 @@ JX.install('Request', { return this; }, - setFile : function(file) { - if (__DEV__) { - JX.$E( - 'JX.Request.setFile(): ' + - 'DEPRECATED. Use JX.Request.setRawData instead.'); - } - return this.setRawData(file); - }, - - getFile : function() { - if (__DEV__) { - JX.$E( - 'JX.Request.getFile(): ' + - 'DEPRECATED. Use JX.Request.getRawData instead.'); - } - return this.getRawData(); - }, - setDataWithListOfPairs : function(list_of_pairs) { this._data = list_of_pairs; return this;