Skip to content

Commit

Permalink
Remove deprecated Delete pdata func from (v0.47.0) (#5307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Boten authored May 3, 2022
1 parent 041f398 commit 9be6ecc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- Remove pdata deprecated funcs from 2 versions (v0.48.0) ago. (#5219)
- Remove non pdata deprecated funcs/structs (#5220)
- `pmetric.Exemplar.ValueType()` now returns new type `ExemplarValueType` (#5233)
- Remove deprecated `Delete` pdata func from (v0.47.0). (#5307)

### 🚩 Deprecations 🚩

Expand Down
5 changes: 0 additions & 5 deletions pdata/internal/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,6 @@ func (m Map) Get(key string) (Value, bool) {
return Value{nil}, false
}

// Deprecated: [v0.47.0] Use Remove instead.
func (m Map) Delete(key string) bool {
return m.Remove(key)
}

// Remove removes the entry associated with the key and returns true if the key
// was present in the map, otherwise returns false.
func (m Map) Remove(key string) bool {
Expand Down

0 comments on commit 9be6ecc

Please sign in to comment.