From 2d95fdf07a2c68ecc41401bf6df52c578b4dd298 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Wed, 28 May 2025 11:27:04 +0200 Subject: [PATCH] clean up --- src/component/expr/CallBlock.tsx | 6 ------ src/component/other/Type.tsx | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/component/expr/CallBlock.tsx b/src/component/expr/CallBlock.tsx index e5c77b5..267a7c9 100644 --- a/src/component/expr/CallBlock.tsx +++ b/src/component/expr/CallBlock.tsx @@ -49,11 +49,8 @@ function nestedInputProperties({state, setState, score, typeInfo}: CallBlockProp } export function CallBlock(props: CallBlockProps) { - const env = useContext(EnvContext); const globalContext = useContext(GlobalContext); const addParam = getActions(globalContext, props.setState).c; - // const [resolved] = evalExprBlock(props.state, env); - // return return @@ -64,9 +61,6 @@ export function CallBlock(props: CallBlockProps) { {...props} addParam={addParam} /> - {/* { (resolved.kind === "error") && resolved.e.toString() - || (resolved.kind === "value") && - || "unknown" } */} :: diff --git a/src/component/other/Type.tsx b/src/component/other/Type.tsx index e908aca..76a33af 100644 --- a/src/component/other/Type.tsx +++ b/src/component/other/Type.tsx @@ -1,9 +1,10 @@ import { getHumanReadableName, getSymbol, prettySS, symbolDict, symbolDictIterator, symbolFunction, symbolList, symbolProduct, symbolSet, symbolSetIterator, symbolSum } from "dope2"; -import "./Type.css"; import { ValueUnknown } from "./Value"; import type { TypeInfo } from "../../eval/infer_type"; +import "./Type.css"; + export function TypeInfoBlock({typeInfo}: {typeInfo: TypeInfo}) { return