From 28546338143318674a789e5cfb41d31bbd4aa1bc Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 22 Jun 2023 11:45:55 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(API):=20remove=20unused?= =?UTF-8?q?=20postValidateNode=20function=20The=20postValidateNode=20funct?= =?UTF-8?q?ion=20is=20not=20used=20in=20the=20codebase=20and=20has=20been?= =?UTF-8?q?=20removed=20to=20improve=20code=20readability=20and=20maintain?= =?UTF-8?q?ability.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/controllers/API/index.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 2dca61a00..2651a0058 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -49,13 +49,6 @@ export async function postValidateCode( return await axios.post("/api/v1/validate/code", { code }); } -export async function postValidateNode( - nodeId: string, - data: any -): Promise> { - return await axios.post(`/api/v1/validate/node/${nodeId}`, { data }); -} - /** * Checks the prompt for the code block by sending it to an API endpoint. *