about summary refs log tree commit diff stats
path: root/src/html/enums.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/enums.nim')
-rw-r--r--src/html/enums.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/html/enums.nim b/src/html/enums.nim
index 925e3b68..119a9a9b 100644
--- a/src/html/enums.nim
+++ b/src/html/enums.nim
@@ -1,6 +1,3 @@
-import std/strutils
-import std/tables
-
 import chame/tags
 
 type
@@ -71,15 +68,6 @@ const ResettableElements* = {
   TAG_INPUT, TAG_OUTPUT, TAG_SELECT, TAG_TEXTAREA
 }
 
-func getInputTypeMap(): Table[string, InputType] =
-  for i in InputType:
-    result[$InputType(i)] = InputType(i)
-
-const inputTypeMap = getInputTypeMap()
-
-func inputType*(s: string): InputType =
-  return inputTypeMap.getOrDefault(s.toLowerAscii())
-
 const AutoDirInput* = {
   itHidden, itText, itSearch, itTel, itURL, itEmail, itPassword, itSubmit,
   itReset, itButton
a title='Blame the previous revision' href='/gbmor/getwtxt/blame/types.go?h=v0.4.7&id=1f023dcf4595eceee04ce3862dd2be19a496c6db'>^
8af4945 ^
920306c ^

cd635e6 ^




f06a2d6 ^
747f4fb ^
df1d1ef ^







747f4fb ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48