mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 981077 - Part 3: Remove unused method of getClientIdByIccId(). r=vyang
This commit is contained in:
parent
5a2dace25b
commit
bbc8d622ef
@ -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];
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user