ResponseWriter: Remove unexported method

This commit is contained in:
Adnan Maolood 2021-02-24 10:01:44 -05:00
parent bd29d76f66
commit b66b287f94
2 changed files with 0 additions and 9 deletions

View File

@ -158,5 +158,3 @@ func (w *timeoutWriter) Flush() error {
func (w *timeoutWriter) Close() error {
return w.wc.Close()
}
func (w *timeoutWriter) unexported() {}

View File

@ -160,11 +160,6 @@ type ResponseWriter interface {
// Close closes the connection.
// Any blocked Write operations will be unblocked and return errors.
Close() error
// unexported method so we can extend this interface over time
// without breaking existing code. Implementers must embed a concrete
// type from elsewhere.
unexported()
}
type responseWriter struct {
@ -228,5 +223,3 @@ func (w *responseWriter) Flush() error {
func (w *responseWriter) Close() error {
return w.cl.Close()
}
func (w *responseWriter) unexported() {}