Fix camelCase again

This commit is contained in:
Joey Yakimowich-Payne 2020-09-09 04:56:50 -06:00
commit e2dfe815ab

View file

@ -12,7 +12,6 @@ template camelCase(str: string): string =
else:
res.add(str[i])
i += 1
res[0] = res[0].toUpperAscii
res
template lowerFirstLetter(str, rep: string): string =
@ -124,9 +123,6 @@ proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
for rep in replacements:
if sym.kind == nskProc:
sym.name = lowerFirstLetter(sym.name, rep)
# elif sym.kind == nskType:
# if sym.name.startsWith(rep):
# sym.name = camelCase(removeBeginning(sym.name, rep))
else:
sym.name = removeBeginning(sym.name, rep)