diff options
Diffstat (limited to 'src/sync')
| -rw-r--r-- | src/sync/atomic/value.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/sync/atomic/value.go b/src/sync/atomic/value.go index ac5a9a5e72..eab7e70c9b 100644 --- a/src/sync/atomic/value.go +++ b/src/sync/atomic/value.go @@ -14,8 +14,6 @@ import ( // // A Value must not be copied after first use. type Value struct { - noCopy noCopy - v interface{} } @@ -86,13 +84,3 @@ func (v *Value) Store(x interface{}) { // Disable/enable preemption, implemented in runtime. func runtime_procPin() func runtime_procUnpin() - -// noCopy may be embedded into structs which must not be copied -// after the first use. -// -// See https://golang.org/issues/8005#issuecomment-190753527 -// for details. -type noCopy struct{} - -// Lock is a no-op used by -copylocks checker from `go vet`. -func (*noCopy) Lock() {} |
