B2G/gecko/toolkit/mozapps/extensions/test/browser/head.js
/**
   * Removes an add-on from the list of add-ons that this provider exposes to
   * the AddonManager, dispatching the onUninstalled event in the process.
   *
   * @param  aAddon
   *         The add-on to add
   */
Removes an add-on from the list of add-ons that this provider exposes to
the AddonManager, dispatching the onUninstalled event in the process.

@param  aAddon
The add-on to add
Removes an add - on from the list of add - ons that this provider exposes to the AddonManager dispatching the onUninstalled event in the process . @param aAddon The add - on to add
function MP_removeAddon(aAddon) {
    var pos = this.addons.indexOf(aAddon);
    if (pos == -1) {
      ok(false, "Tried to remove an add-on that wasn't registered with the mock provider");
      return;
    }
    this.addons.splice(pos, 1);
    if (!this.started)
      return;
    AddonManagerPrivate.callAddonListeners("onUninstalled", aAddon);
  }
function MP_removeAddon ( aAddon ) { var pos = this . addons . indexOf ( aAddon ) ; if ( pos == - 1 ) { ok ( false , "Tried to remove an add-on that wasn't registered with the mock provider" ) ; return ; } this . addons . splice ( pos , 1 ) ; if ( ! this . started ) return ; AddonManagerPrivate . callAddonListeners ( "onUninstalled" , aAddon ) ; }
Removes an add-on from the list of add-ons that this provider exposes to
 the AddonManager, dispatching the onUninstalled event in the process.
Removes an add - on from the list of add - ons that this provider exposes to the AddonManager dispatching the onUninstalled event in the process .