proc,terminal: remove unused unexported functions (#3299)

This commit is contained in:
Oleksandr Redko 2023-03-06 08:58:07 +02:00 committed by GitHub
parent c0b0148525
commit 7a05a4326f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 22 deletions

@ -2832,15 +2832,6 @@ func TestNextInDeferReturn(t *testing.T) {
})
}
func getg(goid int64, gs []*proc.G) *proc.G {
for _, g := range gs {
if g.ID == goid {
return g
}
}
return nil
}
func TestAttachDetach(t *testing.T) {
if testBackend == "lldb" && runtime.GOOS == "linux" {
bs, _ := ioutil.ReadFile("/proc/sys/kernel/yama/ptrace_scope")

@ -559,19 +559,6 @@ func TestOnPrefixLocals(t *testing.T) {
})
}
func countOccurrences(s, needle string) int {
count := 0
for {
idx := strings.Index(s, needle)
if idx < 0 {
break
}
count++
s = s[idx+len(needle):]
}
return count
}
func listIsAt(t *testing.T, term *FakeTerminal, listcmd string, cur, start, end int) {
t.Helper()
outstr := term.MustExec(listcmd)