removed unused code
Massimo Melina committed
Jun 29, 2022 at 21:14 UTC
0577873f1542f44504160dc9b72199afab648d02
1 file changed
-8
server/src/commands.ts
-8
@@ -20,14 +20,6 @@ require('readline').createInterface({ input: process.stdin }).on('line', (line:
20
})
21
})
22
23
-function getFunctionArgs(fun: Function) {
24
- const args = /\((.*)\)\s*\{/.exec(fun.toString())![1]
25
- return args && args.split(',').map(arg => {
26
- const [name,def] = arg.split('=')
27
- return `<${name.trim()}>${def ? '='+def.trim() : ''}`
28
- }).join(' ')
29
-}
30
-
23
const commands = {
24
help: {
25
params: '',