about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-10 22:50:23 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-10 22:50:23 +0100
commit940325abfc9714b06de920a2a7f8911eae22f357 (patch)
tree9651d5f1d22e3eaa6b098b6bbed97a583244375d /src/css
parent5c267ce6c9c1add997767f5eaad248cdd829c6fc (diff)
downloadchawan-940325abfc9714b06de920a2a7f8911eae22f357.tar.gz
Fix blocking socketstream recv/send, clean up ips/serialize & types/color
Write always blocks for now, as it's too big of a footgun not to
Diffstat (limited to 'src/css')
-rw-r--r--src/css/values.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 66704d36..6d92807a 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -420,9 +420,6 @@ func cssColor(val: CSSComponentValue): RGBAColor =
     else: discard
   raise newException(CSSValueError, "Invalid color")
 
-func cellColor*(color: RGBAColor): CellColor =
-  return CellColor(rgb: true, rgbcolor: RGBColor(color))
-
 func isToken(d: CSSDeclaration): bool {.inline.} = d.value.len > 0 and d.value[0] of CSSToken
 
 func cssLength(d: CSSDeclaration): CSSLength =