From 1499616f2ae488725a83041be23bae8a898a276d Mon Sep 17 00:00:00 2001 From: Chia-hung Tai Date: Wed, 27 Feb 2013 14:41:52 +0800 Subject: [PATCH] Bug 810097 (follow-up): remove dead code as well. r=vicamo --- dom/mms/src/ril/MmsService.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/dom/mms/src/ril/MmsService.js b/dom/mms/src/ril/MmsService.js index a1cb9f551b9c..bcca1795e545 100644 --- a/dom/mms/src/ril/MmsService.js +++ b/dom/mms/src/ril/MmsService.js @@ -770,17 +770,6 @@ MmsService.prototype = { */ confSendDeliveryReport: CONFIG_SEND_REPORT_DEFAULT_YES, - /** - * @param status - * The MMS error type. - * - * @return true if it's a type of transient error; false otherwise. - */ - isTransientError: function isTransientError(status) { - return (status >= MMS.MMS_PDU_ERROR_TRANSIENT_FAILURE && - status < MMS.MMS_PDU_ERROR_PERMANENT_FAILURE); - }, - /** * Calculate Whether or not should we enable X-Mms-Report-Allowed. * @@ -837,10 +826,7 @@ MmsService.prototype = { if (RETRIEVAL_MODE_AUTOMATIC === retrievalMode) { this.retrieveMessage(url, (function responseNotify(mmsStatus, retrievedMsg) { debug("retrievedMsg = " + JSON.stringify(retrievedMsg)); - if (this.isTransientError(mmsStatus)) { - // TODO: remove this check after bug 810097 is landed. - return; - } + // TODO: Bug 845643 - B2G MMS: Save retrieved MM into database. let transactionId = notification.headers["x-mms-transaction-id"];