some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckIneffectiveAppend / CheckIneffectiveAppend.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckIneffectiveAppend/CheckIneffectiveAppend.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckIneffectiveAppend/CheckIneffectiveAppend.go
deleted file mode 100644 (file)
index 12e84cd..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-package pkg
-
-import "fmt"
-
-func fn1() {
-       var s []int
-       s = append(s, 1) // want `this result of append is never used`
-       s = append(s, 1) // want `this result of append is never used`
-}
-
-func fn2() (named []int) {
-       named = append(named, 1)
-       return
-}
-
-func fn3() {
-       s := make([]int, 0)
-       s = append(s, 1) // want `this result of append is never used`
-}
-
-func fn4() []int {
-       var s []int
-       s = append(s, 1)
-       return s
-}
-
-func fn5() {
-       var s []int
-       s = append(s, 1)
-       fn6(s)
-}
-
-func fn6([]int) {}
-
-func fn7() {
-       var s []int
-       fn8(&s)
-       s = append(s, 1)
-}
-
-func fn8(*[]int) {}
-
-func fn9() {
-       var s []int
-       s = append(s, 1)
-       fmt.Println(s)
-       s = append(s, 1) // want `this result of append is never used`
-}
-
-func fn10() {
-       var s []int
-       return
-       s = append(s, 1)
-}
-
-func fn11() {
-       var s []int
-       for x := 0; x < 10; x++ {
-               s = append(s, 1) // want `this result of append is never used`
-       }
-}