runtime: rm NewSlice (use b.unsafeSlice); llgo/ssa: Println
This commit is contained in:
@@ -31,11 +31,6 @@ type Slice struct {
|
||||
cap int
|
||||
}
|
||||
|
||||
// NewSlice creates a new slice.
|
||||
func NewSlice(data unsafe.Pointer, len, cap int) Slice {
|
||||
return Slice{data, len, cap}
|
||||
}
|
||||
|
||||
func NewSlice3(base unsafe.Pointer, eltSize, cap, i, j, k int) (s Slice) {
|
||||
if i < 0 || j < i || k < j || k > cap {
|
||||
panic("slice index out of bounds")
|
||||
|
||||
Reference in New Issue
Block a user