about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-13 14:04:28 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-13 14:04:28 +0200
commita252f9695d8c95d2eb1aaf7d25e720ac84765be6 (patch)
tree1e9ff1506c2632536adf2e5666ebf0efbe81d8aa /src/config
parent059ae6b0713e2be43a1eaa7fbae005a83c4de03d (diff)
downloadchawan-a252f9695d8c95d2eb1aaf7d25e720ac84765be6.tar.gz
twtstr, toml: misc cleanup
* remove unused DateTime toml type
* add parseIntP for pointer-size int parsing
Diffstat (limited to 'src/config')
-rw-r--r--src/config/toml.nim5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/config/toml.nim b/src/config/toml.nim
index c196c6f2..617b11c1 100644
--- a/src/config/toml.nim
+++ b/src/config/toml.nim
@@ -12,7 +12,6 @@ type
     tvtInteger = "integer"
     tvtFloat = "float"
     tvtBoolean = "boolean"
-    tvtDateTime = "datetime"
     tvtTable = "table"
     tvtArray = "array"
 
@@ -43,8 +42,6 @@ type
       b*: bool
     of tvtTable:
       tab*: TomlTable
-    of tvtDateTime:
-      dt*: DateTime
     of tvtArray:
       a*: seq[TomlValue]
       ad*: bool
@@ -102,8 +99,6 @@ func `$`*(val: TomlValue): string =
     result = $val.b
   of tvtTable:
     result = $val.t
-  of tvtDateTime:
-    result = $val.dt
   of tvtArray:
     #TODO if ad table array probably
     result = "["