From d86acfcf8c6d6650ff79c4d9e7354b06443a26d3 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 30 May 2023 14:54:36 +0200 Subject: rules: Drop needless conditional --- rules/CC/proto/EXPRESSIONS | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'rules') diff --git a/rules/CC/proto/EXPRESSIONS b/rules/CC/proto/EXPRESSIONS index 894b80bc..6be74df9 100644 --- a/rules/CC/proto/EXPRESSIONS +++ b/rules/CC/proto/EXPRESSIONS @@ -138,14 +138,9 @@ , ["TOOLCHAIN_DIR", "toolchain"] , ["TOOLCHAIN", {"type": "CALL_EXPRESSION", "name": "default-TOOLCHAIN"}] , [ "TOOLCHAIN" - , { "type": "if" - , "cond": {"type": "var", "name": "TOOLCHAIN"} - , "then": - { "type": "to_subdir" - , "subdir": {"type": "var", "name": "TOOLCHAIN_DIR"} - , "$1": {"type": "var", "name": "TOOLCHAIN"} - } - , "else": {"type": "empty_map"} + , { "type": "to_subdir" + , "subdir": {"type": "var", "name": "TOOLCHAIN_DIR"} + , "$1": {"type": "var", "name": "TOOLCHAIN"} } ] , [ "NON_SYSTEM_TOOLS" -- cgit v1.2.3