Skip to content

Commit

Permalink
syscall: remove some dead code
Browse files Browse the repository at this point in the history
Not sure why it's here but it's not referenced anywhere.
  • Loading branch information
aykevl authored and deadprogram committed Jul 18, 2024
1 parent 87a8aaf commit 2920492
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/syscall/syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package syscall

import (
"errors"
"sync/atomic"
)

const (
Expand All @@ -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")
}

0 comments on commit 2920492

Please sign in to comment.