Skip to content

Commit

Permalink
Deprecate StructOpts and perf.IsClosed()
Browse files Browse the repository at this point in the history
These were deprecated and scheduled to be removed in 0.8.0.

Signed-off-by: Timo Beckers <timo@isovalent.com>
  • Loading branch information
ti-mo authored and lmb committed Jan 21, 2022
1 parent 0c343b5 commit a02484a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions perf/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,6 @@ func (pr *Reader) Resume() error {
return nil
}

// IsClosed returns true if the error occurred because
// a Reader was closed.
//
// Deprecated: use errors.Is(err, ErrClosed) instead.
func IsClosed(err error) bool {
return errors.Is(err, ErrClosed)
}

type unknownEventError struct {
eventType uint32
}
Expand Down
6 changes: 0 additions & 6 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ const (
maxMapType
)

// Deprecated: StructOpts was a typo, use StructOpsMap instead.
//
// Declared as a variable to prevent stringer from picking it up
// as an enum value.
var StructOpts MapType = StructOpsMap

// hasPerCPUValue returns true if the Map stores a value per CPU.
func (mt MapType) hasPerCPUValue() bool {
return mt == PerCPUHash || mt == PerCPUArray || mt == LRUCPUHash || mt == PerCPUCGroupStorage
Expand Down

0 comments on commit a02484a

Please sign in to comment.