def _delete_rows(self, pos, num_rows):
        """ Removes rows pos through pos + num_rows from the model. """

        if pos + num_rows >= self.get_row_count():
            num_rows = self.get_rows_count() - pos

        return self._delete_rows_from_model(pos, num_rows)
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/trait_grid_model.py/TraitGridModel._delete_rows/original