@@ -854,15 +854,6 @@ func bufioWriterPool(size int) *sync.Pool {
854854 return nil
855855}
856856
857- // newBufioReader should be an internal detail,
858- // but widely used packages access it using linkname.
859- // Notable members of the hall of shame include:
860- // - github.com/gobwas/ws
861- //
862- // Do not remove or change the type signature.
863- // See go.dev/issue/67401.
864- //
865- //go:linkname newBufioReader
866857func newBufioReader (r io.Reader ) * bufio.Reader {
867858 if v := bufioReaderPool .Get (); v != nil {
868859 br := v .(* bufio.Reader )
@@ -874,29 +865,11 @@ func newBufioReader(r io.Reader) *bufio.Reader {
874865 return bufio .NewReader (r )
875866}
876867
877- // putBufioReader should be an internal detail,
878- // but widely used packages access it using linkname.
879- // Notable members of the hall of shame include:
880- // - github.com/gobwas/ws
881- //
882- // Do not remove or change the type signature.
883- // See go.dev/issue/67401.
884- //
885- //go:linkname putBufioReader
886868func putBufioReader (br * bufio.Reader ) {
887869 br .Reset (nil )
888870 bufioReaderPool .Put (br )
889871}
890872
891- // newBufioWriterSize should be an internal detail,
892- // but widely used packages access it using linkname.
893- // Notable members of the hall of shame include:
894- // - github.com/gobwas/ws
895- //
896- // Do not remove or change the type signature.
897- // See go.dev/issue/67401.
898- //
899- //go:linkname newBufioWriterSize
900873func newBufioWriterSize (w io.Writer , size int ) * bufio.Writer {
901874 pool := bufioWriterPool (size )
902875 if pool != nil {
@@ -909,15 +882,6 @@ func newBufioWriterSize(w io.Writer, size int) *bufio.Writer {
909882 return bufio .NewWriterSize (w , size )
910883}
911884
912- // putBufioWriter should be an internal detail,
913- // but widely used packages access it using linkname.
914- // Notable members of the hall of shame include:
915- // - github.com/gobwas/ws
916- //
917- // Do not remove or change the type signature.
918- // See go.dev/issue/67401.
919- //
920- //go:linkname putBufioWriter
921885func putBufioWriter (bw * bufio.Writer ) {
922886 bw .Reset (nil )
923887 if pool := bufioWriterPool (bw .Available ()); pool != nil {
0 commit comments