Remove unused responseWriter struct
All checks were successful
CI / build (pull_request) Successful in 27s

Address review feedback to remove dead code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-09 17:23:09 +01:00
parent 62f085e8e6
commit 341379c166

View File

@@ -1,7 +1,6 @@
package host
import (
"bytes"
"compress/gzip"
"fmt"
"io"
@@ -221,18 +220,3 @@ func (d *DevServer) ListenAndServe(addr string) error {
d.logger.Printf("Development server running on http://%s", addr)
return http.ListenAndServe(addr, d)
}
// ResponseWriter wraps http.ResponseWriter to capture the response
type responseWriter struct {
http.ResponseWriter
buf *bytes.Buffer
statusCode int
}
func (rw *responseWriter) WriteHeader(code int) {
rw.statusCode = code
}
func (rw *responseWriter) Write(b []byte) (int, error) {
return rw.buf.Write(b)
}