@@ -765,7 +765,6 @@ func (c Cookie) DelCookies(key ...string) {
765
765
}
766
766
}
767
767
768
- // VisitAll iterates through all cookies, calling f for each.
769
768
// All returns an iterator over cookie key-value pairs.
770
769
//
771
770
// 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] {
779
778
}
780
779
}
781
780
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
-
792
781
// Reset clears the Cookie map.
793
782
func (c Cookie ) Reset () {
794
783
for k := range c {
@@ -832,7 +821,6 @@ func (p PathParam) DelParams(key ...string) {
832
821
}
833
822
}
834
823
835
- // VisitAll iterates through all path parameters, calling f for each.
836
824
// All returns an iterator over path parameter key-value pairs.
837
825
//
838
826
// 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] {
846
834
}
847
835
}
848
836
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
-
859
837
// Reset clears the PathParam map.
860
838
func (p PathParam ) Reset () {
861
839
for k := range p {
0 commit comments