From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6DfpMuE/GmdxkgAA62LTzQ:P1 (envelope-from ) for ; Thu, 24 Oct 2024 14:38:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6DfpMuE/GmdxkgAA62LTzQ (envelope-from ) for ; Thu, 24 Oct 2024 14:38:57 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=kuzHjtxW; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="a/tImnry"; dmarc=pass (policy=none) header.from=maniero.me; 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") ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1729773537; a=rsa-sha256; cv=pass; b=DKZzMFY7L2aczIVMmSzEzcETjr4WuzbJqLxzqrLm1iJLkVUUaT1OGh+FANIlGo4nVZdXol PeNmYhcgEEhYuP375c0ZMg7DYDmcZtLyi+wMw7ZQZDAb5gTgn60TbLBFqQmNr12iMwK45v DEvzUG6PC7rVzbwB3tLO1TkZIvlKuYlJJV3ZNAqeUDdluDpQmOML7kkL85pAZ9aXC8z7dD HVKEnDo+koYut6CMCrcgTR9HGG0nqXZkczCsrwVhl2rG4eIqzRvnDf8ijUSHs2Y6FGm7jk nJlKrwVeMTQxzUMfUjXEwODwM2rcCE1wlc7Sv2CAoky8Ab4+s1ftU7tDShHHEw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=kuzHjtxW; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b="a/tImnry"; dmarc=pass (policy=none) header.from=maniero.me; 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") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1729773537; 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=ZhCFP6Os9H8zSxhqFNkPwTwju3sN2TdMiIOLqIV2TbA=; b=mEzTnH4mTS0eH/m01J51+OImJBE7KNOgYWUGrFj7NXQ12RDJ/ca7rI8Tkm9P1ut+EER+sg 2XCGCx9zdqZwSlKi00MUP9bxT/G3r/d+ebbJn5+IiRuImiVJjzMOQM81bxuMRzSliORZRW PRpYJrOxNNWaqPxH5ukH+O3P5JRF0b88WKpQPXXZYdISJQxcriH7XpiqCFCmBqfwodm6ZQ 9k8PF0YFTHCfC+sG/BCJ77fWBla4aN/JVBPi/toGT9jV/lbkLgXP9QmxeFegim+RUCxSfr ksgja9UXAYzrUT7QJr/6jFTgYmIunMexGJlgnGRj3ZQZ/wRuSVAm+FbAGNQ6AA== 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 B1579666A for ; Thu, 24 Oct 2024 14:38:57 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=I7iifip3c7jJU6Ju8DRCsDDMC3/VWwQ/rxyNuaNhFgo=; 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=1729773537; v=1; b=kuzHjtxWjZhArHZK3RjyVmDv6KfGhrsVmBQcl2KMFUzGgdQxmJKCNKfzFc/nm0anDJdMmQla p7+40rJALol4yjMgcpcqs+Lp5aoGgVcH7shhelPHQ0UFEQmy58yDd4mYI7tCH7+a9vzrZZgK444 W1A9sBmV1RIkVnH2+tMn3NhVydKD3I8i2HNaMpffSUuZc8dr1Xi/XiG6YDm97lgxM2hslKc7oEl Nl1vnWb7SDLcmeiLXIe17MJKuYqcMj44+TBKDFEGYAsewxcPIV8Pt/fnG+yIaCRUasxiDM2ZOks qcG1eDkThPolj5ZmJS9+q/6BIefFL/W9VT2xfJwV79TEA== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 6C55F20355 for ; Thu, 24 Oct 2024 12:38:57 +0000 (UTC) Received: from cross.elm.relay.mailchannels.net (cross.elm.relay.mailchannels.net [23.83.212.46]) by mail-a.sr.ht (Postfix) with ESMTPS id 69BA220347 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 24 Oct 2024 12:38:56 +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 EB7407832BE for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 24 Oct 2024 12:38:54 +0000 (UTC) Received: from uk-fast-smtpout10.hostinger.io (100-99-180-172.trex-nlb.outbound.svc.cluster.local [100.99.180.172]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 372287832C7 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 24 Oct 2024 12:38:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1729773534; a=rsa-sha256; cv=none; b=3+hxTK1T7LPcq2H4OPJzfOK8JOCPJuslclq6fnWFWiDloTpvmIn6jany760jfutgNRFvH+ RwOBwxezBX040El+RWH9TLvTiiLVwWpwMUYcYVuvO05d4pJNBeNZtZP4CE8MQK7svJpf5W awT/pF3vVznPcLAPRVXymFj7Rym9rW/lgOFxbgoILFmtjtatJr6ga75a401FmgaDbQFuPd QkB9VsvVdP5RZ6JCO+0q4v83H7qh9xlrdeBfoVX+KczgBnGOP3KTJtsHb2GzKlBqrleySG uQEr6xSHS72m/nZCd2CADOwjbVh7nku7c78ia7UvutV6Ly6hhZ6crCixK9tXig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1729773534; 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=ZhCFP6Os9H8zSxhqFNkPwTwju3sN2TdMiIOLqIV2TbA=; b=mOUQCaoq6QxJopf/25SuRF9ra7Q/XKYIBYwz5RrZEbBveuVXjrvcqrfXLU1Z/XuD4TX/D/ LwuxLbD9s09jBVzCkuSioY2dDxiY00GgZEVkmij2Hq6p+llARN6f8LqkgxvZJHnnsO/DlB MhEir/XEobkfx8xPhsT/1iN4fJWXBVThMPW6bGcJFwTdGGN9HpMB2+VVZX5IOD/Rdfbtj/ 74xMXOrJoBc3a1EI9kxODGa7Lt6W4yt9UfMa+mpO7gDpE4KksJyzSdjYDt6IbfyXoJCtkh 5sqqEx0mSc2CS4ziZcV5MMSeEVrHNS4Y+Heyv1lS5jmgIEJRwF43TQ4CB+w1ng== ARC-Authentication-Results: i=1; rspamd-7767f6b98-kcp28; 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-Fumbling-Fumbling: 2153854509fe4288_1729773534709_2060050690 X-MC-Loop-Signature: 1729773534709:221302831 X-MC-Ingress-Time: 1729773534709 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.99.180.172 (trex/7.0.2); Thu, 24 Oct 2024 12:38:54 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1729773532; 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=ZhCFP6Os9H8zSxhqFNkPwTwju3sN2TdMiIOLqIV2TbA=; b=a/tImnryOnWc7vlejh+TdoLAPOqOaQ7mArroSkSHDROs8CiAXbmtxQUjUO7jnT0piw4l7Y mhwHvXby4R8kpm9hlK0kxos2iLk3XvUTRNUzfBL60AaiITlV66z5XVFDvSRU72IWSOsJJy wjldAZvtYbfUO2PYc6IVUaUJUGgSurunMKqbslGAAU/wBfBLhV82itYLnxmg5CFda7ZzJH IvMmo2X4qhgtoi1cCmnecaRnz6QVC/UBQ/s2f+AwmDxxKCue3J2e+3vMc4BuElv+5B1550 JK0zyx1zAokerDZ6PFRZFS7+ooH3uJbjsf+lGiC8c/s6ETmg/weISAA/MRU9TQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v1 6/6] ast: remove dead code from var_assign ast node Message-ID: <20241024123825.120390-7-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241024123825.120390-1-carlos@maniero.me> References: <20241024123825.120390-1-carlos@maniero.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 24 Oct 2024 12:38:52 +0000 (UTC) X-CM-Envelope: MS4xfHwIDbA5QXPh+50DKoy1xBNkza6SxCWDkCgz41flMoJOZYrgz4+CKIanhkaJbM8Xjy/rnzpeqGIddd8PD5iXqPKVb7+/7WAXzTWx+LcgqcDN0cJ4S+7p iSSFx9FQNoTrpxFIencp4exT9ABpY1MRDXn1WhNjjNdjx3T4ggmk0znphI0EgwpVx9ngCIS0/1VWHaw3yAorBsE7l1A3ywqi8uoOcgG2/1ho1ekSUetdR2Yq X-CM-Analysis: v=2.4 cv=TcnEtgQh c=1 sm=1 tr=0 ts=671a3fdc a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=UERWqT6SJP2W0BNUjAEA:9 a=BXDaF_L80NY05PYiAFlV:22 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: -0.75 X-Spam-Score: -0.75 X-Migadu-Queue-Id: B1579666A X-Migadu-Scanner: mx12.migadu.com X-TUID: XybJ0FNkSplY 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 8cf072a..4ba0848 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