parameters: (self, index)
docstring: Remove the index.
docstring_summary: Remove the index.
docstring_tokens: Remove the index .
function: def remove(self, index):
          """Remove the index."""
          if not index.isValid():
              return
  
          item = index.internalPointer()
  
          i = item.row()
  
          self.beginRemoveRows(QtCore.QModelIndex(), i, i)
          self.rootItem.childItems.pop(i).setParent(None)
          self.endRemoveRows()
  
          # Update the Maya object
          self.updateCurrentNode()
function_tokens: def remove ( self , index ) : if not index . isValid ( ) : return item = index . internalPointer ( ) i = item . row ( ) self . beginRemoveRows ( QtCore . QModelIndex ( ) , i , i ) self . rootItem . childItems . pop ( i ) . setParent ( None ) self . endRemoveRows ( ) # Update the Maya object self . updateCurrentNode ( )