From 155dfbfac87e15b21cf9d4f5c3e86b6ad919c142 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 17 May 2021 13:18:36 -0500 Subject: [PATCH] remove draw_funcs --- c2logic/consts.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/c2logic/consts.py b/c2logic/consts.py index c59805d..96f7471 100644 --- a/c2logic/consts.py +++ b/c2logic/consts.py @@ -36,13 +36,7 @@ func_unary_ops = ["abs", "log", "log10", "sin", "cos", "tan", "floor", "ceil", " binary_ops.update(dict(zip(func_binary_ops, func_binary_ops))) unary_ops.update(dict(zip(func_unary_ops, func_unary_ops))) -draw_funcs = { - "draw" + func.lower(): func - for func in - ["clear", "color", "stroke", "line", "rect", "lineRect", "poly", "linePoly", "triangle"] -} - builtins = [ "print", "printd", "printflush", "radar", "sensor", "enable", "shoot", "get_link", "read", "write", "drawflush", "end" -] + list(draw_funcs.keys()) +]