Bug 1124550 - Part 01: Remove unused code. r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2015-02-03 12:18:19 +08:00
Родитель deca27d108
Коммит 2e6a219f14
3 изменённых файлов: 4 добавлений и 16 удалений

Просмотреть файл

@ -60,10 +60,6 @@ XPCOMUtils.defineLazyServiceGetter(this, "gRadioInterfaceLayer",
"@mozilla.org/ril;1",
"nsIRadioInterfaceLayer");
XPCOMUtils.defineLazyServiceGetter(this, "gGonkTelephonyService",
"@mozilla.org/telephony/telephonyservice;1",
"nsIGonkTelephonyService");
let DEBUG = RIL.DEBUG_RIL;
function debug(s) {
dump("MobileConnectionService: " + s + "\n");

Просмотреть файл

@ -530,11 +530,6 @@ RilObject.prototype = {
*/
this._ussdSession = null;
/**
* Regular expresion to parse MMI codes.
*/
this._mmiRegExp = null;
/**
* Cell Broadcast Search Lists.
*/
@ -2743,7 +2738,7 @@ RilObject.prototype = {
return;
}
this.sendUSSD(options);
this.sendUSSD(options, false);
},
/**
@ -2757,11 +2752,9 @@ RilObject.prototype = {
*
* @param ussd
* String containing the USSD code.
* @param checkSession
* True if an existing session should be there.
*/
sendUSSD: function(options) {
if (options.checkSession && !this._ussdSession) {
sendUSSD: function(options, checkSession = true) {
if (checkSession && !this._ussdSession) {
options.success = false;
options.errorMsg = GECKO_ERROR_GENERIC_FAILURE;
this.sendChromeMessage(options);

Просмотреть файл

@ -973,8 +973,7 @@ TelephonyService.prototype = {
},
sendUSSD: function(aClientId, aUssd, aCallback) {
this._sendToRilWorker(aClientId, "sendUSSD",
{ ussd: aUssd, checkSession: true },
this._sendToRilWorker(aClientId, "sendUSSD", { ussd: aUssd },
response => {
if (!response.success) {
aCallback.notifyError(response.errorMsg);