提交 1b819915 编写于 作者: D Derek Parker

Remove unused function

上级 f8bb5acc
......@@ -4,8 +4,7 @@ import (
"bytes"
"encoding/binary"
"fmt"
"os"
"strconv"
"syscall"
"github.com/derekparker/delve/dwarf/frame"
......@@ -314,30 +313,3 @@ func (thread *ThreadContext) clearTempBreakpoint(pc uint64) error {
return nil
}
func threadIds(pid int) []int {
var threads []int
dir, err := os.Open(fmt.Sprintf("/proc/%d/task", pid))
if err != nil {
panic(err)
}
defer dir.Close()
names, err := dir.Readdirnames(0)
if err != nil {
panic(err)
}
for _, strid := range names {
tid, err := strconv.Atoi(strid)
if err != nil {
panic(err)
}
if tid != pid {
threads = append(threads, tid)
}
}
return threads
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册