Bug 981077 - Part 3: Remove unused method of getClientIdByIccId(). r=vyang

This commit is contained in:
Bevis Tseng 2014-03-25 15:04:33 +08:00
parent 5a2dace25b
commit bbc8d622ef
2 changed files with 1 additions and 21 deletions

View File

@ -1613,21 +1613,6 @@ RadioInterfaceLayer.prototype = {
return this.radioInterfaces[clientId];
},
getClientIdByIccId: function(iccId) {
if (!iccId) {
throw Cr.NS_ERROR_INVALID_ARG;
}
for (let clientId = 0; clientId < this.numRadioInterfaces; clientId++) {
let radioInterface = this.radioInterfaces[clientId];
if (radioInterface.rilContext.iccInfo.iccid == iccId) {
return clientId;
}
}
throw Cr.NS_ERROR_NOT_AVAILABLE;
},
setMicrophoneMuted: function(muted) {
for (let clientId = 0; clientId < this.numRadioInterfaces; clientId++) {
let radioInterface = this.radioInterfaces[clientId];

View File

@ -132,17 +132,12 @@ interface nsIRadioInterface : nsISupports
void getSmscAddress(in nsIMobileMessageCallback request);
};
[scriptable, uuid(86a5c280-5641-11e3-949a-0800200c9a66)]
[scriptable, uuid(d035c32e-b491-11e3-9f9d-c716fab88bd6)]
interface nsIRadioInterfaceLayer : nsISupports
{
readonly attribute unsigned long numRadioInterfaces;
nsIRadioInterface getRadioInterface(in unsigned long clientId);
/**
* If not available, throws exception; otherwise, a valid number.
*/
unsigned long getClientIdByIccId(in DOMString iccId);
void setMicrophoneMuted(in boolean muted);
};