Skip to content

Commit 055400d

Browse files
committed
Remove deprecated VisitAll helpers
1 parent 2411bc4 commit 055400d

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

client/request.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ func (c Cookie) DelCookies(key ...string) {
765765
}
766766
}
767767

768-
// VisitAll iterates through all cookies, calling f for each.
769768
// All returns an iterator over cookie key-value pairs.
770769
//
771770
// The returned key and value should not be retained after the iteration loop.
@@ -779,16 +778,6 @@ func (c Cookie) All() iter.Seq2[string, string] {
779778
}
780779
}
781780

782-
// VisitAll iterates through all cookies, calling f for each.
783-
//
784-
// Deprecated: Use All instead.
785-
func (c Cookie) VisitAll(f func(key, val string)) {
786-
c.All()(func(k, v string) bool {
787-
f(k, v)
788-
return true
789-
})
790-
}
791-
792781
// Reset clears the Cookie map.
793782
func (c Cookie) Reset() {
794783
for k := range c {
@@ -832,7 +821,6 @@ func (p PathParam) DelParams(key ...string) {
832821
}
833822
}
834823

835-
// VisitAll iterates through all path parameters, calling f for each.
836824
// All returns an iterator over path parameter key-value pairs.
837825
//
838826
// The returned key and value should not be retained after the iteration loop.
@@ -846,16 +834,6 @@ func (p PathParam) All() iter.Seq2[string, string] {
846834
}
847835
}
848836

849-
// VisitAll iterates through all path parameters, calling f for each.
850-
//
851-
// Deprecated: Use All instead.
852-
func (p PathParam) VisitAll(f func(key, val string)) {
853-
p.All()(func(k, v string) bool {
854-
f(k, v)
855-
return true
856-
})
857-
}
858-
859837
// Reset clears the PathParam map.
860838
func (p PathParam) Reset() {
861839
for k := range p {

docs/client/request.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,14 +1214,6 @@ should not be retained after the loop ends.
12141214
func (c Cookie) All() iter.Seq2[string, string]
12151215
```
12161216

1217-
### VisitAll
1218-
1219-
**VisitAll** iterates over all cookies and executes a given function.
1220-
1221-
```go title="Signature"
1222-
func (c Cookie) VisitAll(f func(key, val string))
1223-
```
1224-
12251217
### Reset
12261218

12271219
**Reset** clears all cookies.
@@ -1295,14 +1287,6 @@ should not be retained after the loop ends.
12951287
func (p PathParam) All() iter.Seq2[string, string]
12961288
```
12971289

1298-
### VisitAll
1299-
1300-
**VisitAll** iterates over all path parameters and executes the provided function.
1301-
1302-
```go title="Signature"
1303-
func (p PathParam) VisitAll(f func(key, val string))
1304-
```
1305-
13061290
### Reset
13071291

13081292
**Reset** clears all path parameters.

0 commit comments

Comments
 (0)