From 2920492e0a11fb64080ea65489ca800d346d3ae6 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 17 Jul 2024 18:46:07 +0200 Subject: [PATCH] syscall: remove some dead code Not sure why it's here but it's not referenced anywhere. --- src/syscall/syscall.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/syscall/syscall.go b/src/syscall/syscall.go index dd36800c9..f22289c5a 100644 --- a/src/syscall/syscall.go +++ b/src/syscall/syscall.go @@ -2,7 +2,6 @@ package syscall import ( "errors" - "sync/atomic" ) const ( @@ -18,11 +17,6 @@ type Rlimit struct { Max uint64 } -// origRlimitNofile, if not {0, 0}, is the original soft RLIMIT_NOFILE. -// When we can assume that we are bootstrapping with Go 1.19, -// this can be atomic.Pointer[Rlimit]. -var origRlimitNofile atomic.Value // of Rlimit - func Setrlimit(resource int, rlim *Rlimit) error { return errors.New("Setrlimit not implemented") }