Skip to content

Commit 4c37fce

Browse files
committed
lint: core/overreach unused var pid
1 parent 20357fc commit 4c37fce

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

intra/core/overreach.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
_ "unsafe" // for go:linkname
1212
)
1313

14-
var pid int
15-
1614
// pushing / pulling symbols work provided
1715
// -ldflags="checklinkname=0"
1816

@@ -32,8 +30,6 @@ func init() {
3230
// about GOTRACEBACK, but for goos.IsAndroid (and for apps with uid > 10000),
3331
// using AT_SECURE to determine "setuid-like" protections appears pointless.
3432
secureMode = false
35-
36-
pid = os.Getpid()
3733
}
3834

3935
func SecureMode(new bool) (prev bool) {

0 commit comments

Comments
 (0)