Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions pkg/colorwriter/colorprofile_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ func Stderr() io.Writer {
return New(os.Stderr, os.Environ())
}

// Stdout returns a color-profile-aware writer for os.Stdout using the current
// process environment.
func Stdout() io.Writer {
return New(os.Stdout, os.Environ())
}

// Degrade returns s with ANSI sequences downgraded (or stripped) according to
// the current process environment (NO_COLOR, COLORTERM, TERM). It is intended
// for use with string-returning format helpers: render the style first, then
Expand Down
6 changes: 0 additions & 6 deletions pkg/colorwriter/colorprofile_writer_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ func Stderr() io.Writer {
return os.Stderr
}

// Stdout returns os.Stdout directly; color-profile detection is not supported
// on wasm.
func Stdout() io.Writer {
return os.Stdout
}

// Degrade returns s unchanged; color-profile detection is not supported on wasm.
func Degrade(s string, _ []string) string {
return s
Expand Down
8 changes: 0 additions & 8 deletions pkg/colorwriter/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ func TestSpec_PublicAPI_Stderr(t *testing.T) {
assert.Implements(t, (*io.Writer)(nil), w, "Stderr should return an io.Writer as documented")
}

// TestSpec_PublicAPI_Stdout validates the documented behavior of Stdout from the
// README.md specification.
func TestSpec_PublicAPI_Stdout(t *testing.T) {
w := colorwriter.Stdout()
require.NotNil(t, w, "Stdout should return a non-nil io.Writer")
assert.Implements(t, (*io.Writer)(nil), w, "Stdout should return an io.Writer as documented")
}

// TestSpec_PublicAPI_Degrade validates the documented behavior of Degrade from the
// README.md specification.
func TestSpec_PublicAPI_Degrade(t *testing.T) {
Expand Down
Loading