Explorar o código

Remove color.RGB.MarshalJSON()

DarthSim hai 1 semana
pai
achega
4a23e90376
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      vips/color/color.go

+ 0 - 4
vips/color/color.go

@@ -38,10 +38,6 @@ func (c RGB) String() string {
 	return fmt.Sprintf("#%02x%02x%02x", c.R, c.G, c.B)
 }
 
-func (c RGB) MarshalJSON() ([]byte, error) {
-	return []byte(fmt.Sprintf(`"#%02x%02x%02x"`, c.R, c.G, c.B)), nil
-}
-
 func (c RGB) LogValue() slog.Value {
 	return slog.StringValue(c.String())
 }