DeleteAt deletes the element at the given index from the slice.
(idx int)
| 370 | |
| 371 | // DeleteAt deletes the element at the given index from the slice. |
| 372 | func (tb *Table) DeleteAt(idx int) { |
| 373 | if idx < 0 || idx >= tb.SliceSize { |
| 374 | return |
| 375 | } |
| 376 | |
| 377 | tb.DeleteAtSelect(idx) |
| 378 | |
| 379 | reflectx.SliceDeleteAt(tb.Slice, idx) |
| 380 | |
| 381 | tb.This.(Lister).UpdateSliceSize() |
| 382 | tb.UpdateChange() |
| 383 | } |
| 384 | |
| 385 | // SortSlice sorts the slice according to current settings. |
| 386 | func (tb *Table) SortSlice() { |
nothing calls this directly
no test coverage detected