B2G/gecko/browser/components/places/content/controller.js
/**
   * Removes the selection
   * @param   aTxnName
   *          A name for the transaction if this is being performed
   *          as part of another operation.
   */
Removes the selection
@param   aTxnName
A name for the transaction if this is being performed
as part of another operation.
Removes the selection @param aTxnName A name for the transaction if this is being performed as part of another operation .
function PC_remove(aTxnName) {
    if (!this._hasRemovableSelection(false))
      return;
    NS_ASSERT(aTxnName !== undefined, "Must supply Transaction Name");
    var root = this._view.result.root;
    if (PlacesUtils.nodeIsFolder(root))
      this._removeRowsFromBookmarks(aTxnName);
    else if (PlacesUtils.nodeIsQuery(root)) {
      var queryType = PlacesUtils.asQuery(root).queryOptions.queryType;
      if (queryType == Ci.nsINavHistoryQueryOptions.QUERY_TYPE_BOOKMARKS)
        this._removeRowsFromBookmarks(aTxnName);
      else if (queryType == Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY)
        this._removeRowsFromHistory();
      else
        NS_ASSERT(false, "implement support for QUERY_TYPE_UNIFIED");
    }
    else
      NS_ASSERT(false, "unexpected root");
  }
function PC_remove ( aTxnName ) { if ( ! this . _hasRemovableSelection ( false ) ) return ; NS_ASSERT ( aTxnName !== undefined , "Must supply Transaction Name" ) ; var root = this . _view . result . root ; if ( PlacesUtils . nodeIsFolder ( root ) ) this . _removeRowsFromBookmarks ( aTxnName ) ; else if ( PlacesUtils . nodeIsQuery ( root ) ) { var queryType = PlacesUtils . asQuery ( root ) . queryOptions . queryType ; if ( queryType == Ci . nsINavHistoryQueryOptions . QUERY_TYPE_BOOKMARKS ) this . _removeRowsFromBookmarks ( aTxnName ) ; else if ( queryType == Ci . nsINavHistoryQueryOptions . QUERY_TYPE_HISTORY ) this . _removeRowsFromHistory ( ) ; else NS_ASSERT ( false , "implement support for QUERY_TYPE_UNIFIED" ) ; } else NS_ASSERT ( false , "unexpected root" ) ; }
Removes the selection
 @param   aTxnName
          A name for the transaction if this is being performed
          as part of another operation.
Removes the selection @param aTxnName A name for the transaction if this is being performed as part of another operation .