summaryrefslogtreecommitdiff
path: root/internal/client/ui/whitespace.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-07 18:19:23 +0200
committerKyren223 <Kyren223@proton.me>2025-01-07 18:19:23 +0200
commit121feb261caf88afe0272750033b9e77b0783efc (patch)
tree117abe7efbc71959efc1d623e91c48d3c8a2389d /internal/client/ui/whitespace.go
parent4234068c584c54f6c5a6fff510cb7515100b14f8 (diff)
Fixed linting issues, should now pass in CI
Diffstat (limited to 'internal/client/ui/whitespace.go')
-rw-r--r--internal/client/ui/whitespace.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/client/ui/whitespace.go b/internal/client/ui/whitespace.go
index c7c7d88..98dcac1 100644
--- a/internal/client/ui/whitespace.go
+++ b/internal/client/ui/whitespace.go
@@ -15,20 +15,6 @@ type whitespace struct {
chars string
}
-// newWhitespace creates a new whitespace renderer. The order of the options
-// matters, if you're using WithWhitespaceRenderer, make sure it comes first as
-// other options might depend on it.
-func newWhitespace(r *lipgloss.Renderer, opts ...WhitespaceOption) *whitespace {
- w := &whitespace{
- re: r,
- style: r.ColorProfile().String(),
- }
- for _, opt := range opts {
- opt(w)
- }
- return w
-}
-
// Render whitespaces.
func (w whitespace) render(width int) string {
if w.chars == "" {