From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GGQuLdz1ImfTgwEAqHPOHw:P1 (envelope-from ) for ; Thu, 31 Oct 2024 04:13:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GGQuLdz1ImfTgwEAqHPOHw (envelope-from ) for ; Thu, 31 Oct 2024 04:13:32 +0100 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=gkuMQlGV; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=APzdnvEI; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=pass (policy=none) header.from=maniero.me ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1730344412; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0J7bq+0GrmZQtPejxPiYJFGkGNVxkkrbLQHor6i354s=; b=Lp8F369UhughXrBOLaT+Gglf5uiM+3h/e3465fPH4JI0CxZvgjaNKMgD0Y1/quvp6uaPAh lvQ47uwSEeZ+43zorEsnGyoKE3OfzjPHNqBTV+tPMwxf1+ZAmwERGDF34PkIsyV40B3lwn N68ZwAbgPbF0TdXXp+N5jk79PsRLdlBFw/ah0ibm1hHvygBQ+kMnBmT6I8RoXGQkLAvtBP cZ9Ti0zXyIuin/9gCLBvQxL8FgTMtNpRi4WSUNLVtkjzoP9l2Szt72Atb+ZFeole8Kk8dg f00i6ONG8eavfGEdnuTR7tLQjgxGCKW8zrNZBGSmEVqI/K5jTtdKIZCr2Djv+g== ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1730344412; a=rsa-sha256; cv=pass; b=GISNnehfFsW7BlfnQ9fOMU1bi4/0u+Qhd8A1XET+MTh8y4Hf0ssXYTnMPhbdFg7E5944Lq s82q6IDlO7S+hOf4joLWCFlPaH1FWeMOsNTOjrHnL4E8Y1BSj7aG17uJlhgADOH/TyA/wu UmA3oBouWnyIZQgOAXIAnQGWg69+wTR+qSwh2s4mshTp8MZ/rJ5CPOdcXOHyx5ZhSBrn67 HfvaJKVM/8Sa/3b1DBRkeL7V/RvadFvyhxWCGZjPiUW8tv+oPw8Ftq1v5KO6J5C6Nn3GUZ +tB9imUNyF37tE2QxrtMuU/Qayx7+QoOI4ef0ClPyNdhBelBTBbRh2o4BIQZTA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=gkuMQlGV; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=APzdnvEI; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=pass (policy=none) header.from=maniero.me Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C3E17D8ED for ; Thu, 31 Oct 2024 04:13:32 +0100 (CET) DKIM-Signature: a=rsa-sha256; bh=S7tTjIypGMSHuamQuwWjdjA19lEuJ012rFkXx+foqCs=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:In-Reply-To:References:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1730344411; v=1; b=gkuMQlGV0k9eoFCjvf4knNTfHrtgLC8ydStwVIIb9hzR1USvury76gNYiknWaJ3YaMeVhDJ6 nO40cNRcR0cqoagw+ZFPXrjdGrPjrNFOHooGtBO1jJoUoXMC4xD1/QFRXeMW93on9BxLgcgncvO 3mRekuTBjQNUN4MHhkXdUHvPTVi1NRQeKimmid7tlYgIDkX60hohOKy+yy/bxhudVIZs54sS39Z NH5UJC8LAdVJrhKN38nQWirbUNP/Shn21+OyM/1XBZF2P0mVxYp0OhDbqOQ/MzjyrmYmjkYqEAa 6VGa62KFquy0xnYbBN6ueTYa/9l645XsK2RRsdj16rfTw== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 0F7CE20392 for ; Thu, 31 Oct 2024 03:13:31 +0000 (UTC) Received: from gecko.ash.relay.mailchannels.net (gecko.ash.relay.mailchannels.net [23.83.222.66]) by mail-a.sr.ht (Postfix) with ESMTPS id D4ED820383 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 31 Oct 2024 03:13:29 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2140C322960 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 31 Oct 2024 03:13:28 +0000 (UTC) Received: from uk-fast-smtpout10.hostinger.io (trex-11.trex.outbound.svc.cluster.local [100.102.251.187]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 49C21322A1F for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 31 Oct 2024 03:13:27 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1730344407; a=rsa-sha256; cv=none; b=E4qmBms7sypZOv5dtjyUBChlXLokea5T05DfexPgYXfgEae4X5s3yQiNkVZZnixutZzE2e ZOi4lyTrCBsZNtPZ/H4TzzgPMHNe5TqEMI5/anrgB2yKD+K2OzumRXo9k2nRUX80zZ3jo7 w8Qw6zh0hgXlgaN6ETuDl/04Eo4j9WxKi02SrgUyqomZM4oCPasJKHC4/fSYhJqYB0IwDo hIsmhr06NnxD5coTW2n1U2/TccC/LTX6hOnWTyZ52vFNCVhP44nM4DA4EKFI1SgDHaSlgI 3Y78IiuvvF5RahgXvFohm2RUkJBJy2TFm0ckmmKYz24ERbdt4gjqNserD/JeZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1730344407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0J7bq+0GrmZQtPejxPiYJFGkGNVxkkrbLQHor6i354s=; b=ROY46XtPucpghP4rHqZ/s/z2+L2xOODkJii5ww9OLIV9fcbuRHHgnje5rnzepxyOs2DdaE yAZZNVVaPskRI6+C+FyX5+VUfd9J8xYAZWUDA9GNKRxjaQfQr/YUWonQqzYrO3PJZ+SfcF LXPlXzznM6KCoyDJKdaZ918Rdwes+L4Zj84VVdMORANQKsdfWtnxIiSkSMuOXeLdnq6bP8 0HpMriaMjiatwp9VI301NYYUazVi8UwMn042udFfSFYZQ+7klRSjPmNo2197XdGgKPyMTi n3QaogGWjbvMM9Un5cwooggoDcSb/j7mo1tb3c+hThMqoQLKdqobzoaXGCEwNQ== ARC-Authentication-Results: i=1; rspamd-77cfccfb8-wx49q; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Interest-Whistle: 24fa1bd1471c8f51_1730344407956_2665384299 X-MC-Loop-Signature: 1730344407956:1621945124 X-MC-Ingress-Time: 1730344407955 Received: from uk-fast-smtpout10.hostinger.io (uk-fast-smtpout10.hostinger.io [145.14.155.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.102.251.187 (trex/7.0.2); Thu, 31 Oct 2024 03:13:27 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1730344405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0J7bq+0GrmZQtPejxPiYJFGkGNVxkkrbLQHor6i354s=; b=APzdnvEIxpURpvzmeo0lCboqOGoZpc4U61uID69fA2g2dsnM7ADcH94EmCadE9SyTj8jSr s9C5O+LB/GMlmWZXpGPnrznUnEkKHiaaaOcL/lcjFXj0m8Pw45BWDEGDUGgLnJczAyCtXJ sfw7T+hevCctCD8qXpiLNAmU5YQGZqk8vXteid3Gb7VyiPrbBSSErmBGFm729CC8HqbhgL VdSPLeTyg6sVelcT6nT2uiT6kzVQBI/yH9lHU1BkvNCZ9zU6CIyoeoM+UmiMQ3iG1I+tUK ZROshnpy3YunksPmHJ2xgbaneuD3ageU6ze6bwFaxcdd4wujUOPLwCQMP7Q/iQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v2 6/6] ast: remove dead code from var_assign ast node Message-ID: <20241031031302.136553-7-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241031031302.136553-1-carlos@maniero.me> References: <20241031031302.136553-1-carlos@maniero.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 31 Oct 2024 03:13:25 +0000 (UTC) X-CM-Analysis: v=2.4 cv=MYc+uI/f c=1 sm=1 tr=0 ts=6722f5d5 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=UERWqT6SJP2W0BNUjAEA:9 a=BXDaF_L80NY05PYiAFlV:22 X-CM-Envelope: MS4xfF/aqlspGqqjMAh1oozujvf0tcAPNncrFM7dLESmBrL+WpzNebALtij/l4xyqOuyYcblsJ7SG8MTWVk0CTqYWzqms7Fub2aXCELBcccrhHkqtPqgaUEh A2+mPhJJjAsbH04o1fVd9P5JzXCQxx+KHk67XU+cp96vZ4+Ik5zvoSwNeiPW1ZHnJsXPnB/XhJW5/I5Ki/Um7vxsV6sDJ/VMxtCf1qHrW6JahAvWGJConB3y X-AuthUser: carlos@maniero.me X-Sourcehut-Patchset-Status: PROPOSED List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Flow: FLOW_IN X-Migadu-Country: NL X-Migadu-Spam-Score: -4.76 X-Spam-Score: -4.76 X-Migadu-Queue-Id: 9C3E17D8ED X-Migadu-Scanner: mx13.migadu.com X-TUID: Ir4CJ5MgapOp Previously, the var_assign was a ast_node but it was replaced to be an binop. The previous struct was not removed tho. Signed-off-by: Carlos Maniero --- src/ast.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ast.h b/src/ast.h index 316f921..6ca70e9 100644 --- a/src/ast.h +++ b/src/ast.h @@ -182,13 +182,6 @@ typedef struct ast_unary_op ast_node_t *operand; } ast_unary_op_t; -typedef struct ast_var_assign_stmt -{ - AST_NODE_HEAD; - ast_node_t *ref; - ast_node_t *value; -} ast_var_assign_stmt_t; - typedef struct ast_return_stmt { AST_NODE_HEAD; @@ -222,7 +215,6 @@ typedef union ast_node ast_literal_t as_literal; ast_ref_t as_ref; ast_block_t as_block; - ast_var_assign_stmt_t as_var_assign_stmt; ast_return_stmt_t as_return_stmt; ast_if_stmt_t as_if_stmt; ast_while_stmt_t as_while_stmt; -- 2.46.1