Bug 1452185 part 1. Remove unused nsIDOMXULContainerElement bits. r=mossop
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 09 Apr 2018 16:30:32 -0400
changeset 779609 f81d6a5b561d8a686b9be38b44ce9eabf325f367
parent 779608 51b8010d7a2805f462d2df4d52ec997002efd0be
child 779610 8ed41cdddaaf985b523f5ff4e7cf5ee5670fe85e
push id105824
push usernnethercote@mozilla.com
push dateTue, 10 Apr 2018 09:55:33 +0000
reviewersmossop
bugs1452185
milestone61.0a1
Bug 1452185 part 1. Remove unused nsIDOMXULContainerElement bits. r=mossop These are unused in C++, and the JS bits don't go through this interface (instead they end up calling things off the relevant XBL prototypes by finding them on the node's proto chain). MozReview-Commit-ID: 4FTyFCl4DRt
dom/interfaces/xul/nsIDOMXULContainerElement.idl
--- a/dom/interfaces/xul/nsIDOMXULContainerElement.idl
+++ b/dom/interfaces/xul/nsIDOMXULContainerElement.idl
@@ -13,56 +13,10 @@ interface nsIDOMXULContainerItemElement 
    * Returns the parent container if any.
    */
   readonly attribute nsIDOMXULContainerElement parentContainer;
 };
 
 [scriptable, uuid(b2bc96b8-31fc-42f4-937a-bd27291af40b)]
 interface nsIDOMXULContainerElement : nsIDOMXULContainerItemElement
 {
-  /**
-   * Creates an item for the given label and value and appends it to the
-   * container.
-   *
-   * @param aLabel - the label for the new item
-   * @param aValue - the value of the new item
-   */
-  nsIDOMXULElement appendItem(in DOMString aLabel, in DOMString aValue);
-
-  /**
-   * Creates an item for the given label and value and inserts it into the
-   * container at the specified position.
-   *
-   * @param aIndex - the index where the new item will be inserted
-   * @param aLabel - the label for the new item
-   * @param aValue - the value of the new item
-   */
-  nsIDOMXULElement insertItemAt(in long aIndex, in DOMString aLabel,
-                                in DOMString aValue);
-
-  /**
-   * Removes an item from the container.
-   *
-   * @param aIndex - index of the item to remove
-   */
-  nsIDOMXULElement removeItemAt(in long aIndex);
-
-  /**
-   * Returns a count of items in the container.
-   */
-  readonly attribute unsigned long itemCount;
-
-  /**
-   * Returns the index of an item or -1 if the item is not in the container.
-   *
-   * @param aItem - the item to determine the index of
-   */
-  long getIndexOfItem(in nsIDOMXULElement aItem);
-
-  /**
-   * Returns the item at a given index or null if the item is not is the
-   * container.
-   *
-   * @param aIndex - the index of the item to return
-   */
-  nsIDOMXULElement getItemAtIndex(in long aIndex);
 };