mirror of
https://github.com/therootcompany/golib.git
synced 2025-10-07 01:28:19 +00:00
chore(colorjson): remove unused sprintfColor
This commit is contained in:
parent
045480f900
commit
df73764148
@ -48,13 +48,6 @@ func NewFormatter() *Formatter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Formatter) sprintfColor(c *color.Color, format string, args ...interface{}) string {
|
|
||||||
if f.DisabledColor || c == nil {
|
|
||||||
return fmt.Sprintf(format, args...)
|
|
||||||
}
|
|
||||||
return c.SprintfFunc()(format, args...)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *Formatter) sprintColor(c *color.Color, s string) string {
|
func (f *Formatter) sprintColor(c *color.Color, s string) string {
|
||||||
if f.DisabledColor || c == nil {
|
if f.DisabledColor || c == nil {
|
||||||
return fmt.Sprint(s)
|
return fmt.Sprint(s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user