Skip to content

Commit a02484a

Browse files
ti-molmb
authored andcommitted
Deprecate StructOpts and perf.IsClosed()
These were deprecated and scheduled to be removed in 0.8.0. Signed-off-by: Timo Beckers <[email protected]>
1 parent 0c343b5 commit a02484a

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

perf/reader.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,6 @@ func (pr *Reader) Resume() error {
353353
return nil
354354
}
355355

356-
// IsClosed returns true if the error occurred because
357-
// a Reader was closed.
358-
//
359-
// Deprecated: use errors.Is(err, ErrClosed) instead.
360-
func IsClosed(err error) bool {
361-
return errors.Is(err, ErrClosed)
362-
}
363-
364356
type unknownEventError struct {
365357
eventType uint32
366358
}

types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ const (
103103
maxMapType
104104
)
105105

106-
// Deprecated: StructOpts was a typo, use StructOpsMap instead.
107-
//
108-
// Declared as a variable to prevent stringer from picking it up
109-
// as an enum value.
110-
var StructOpts MapType = StructOpsMap
111-
112106
// hasPerCPUValue returns true if the Map stores a value per CPU.
113107
func (mt MapType) hasPerCPUValue() bool {
114108
return mt == PerCPUHash || mt == PerCPUArray || mt == LRUCPUHash || mt == PerCPUCGroupStorage

0 commit comments

Comments
 (0)