From 0e727ec50a1400a33d7989a0ba6d17887b305e2e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 20 Nov 2022 16:44:58 +0200 Subject: [PATCH] checker: cleanup obsolete code for compatibility between byteptr and &byte (#16494) --- vlib/v/checker/check_types.v | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/vlib/v/checker/check_types.v b/vlib/v/checker/check_types.v index 98616bf553..06a8cf12ef 100644 --- a/vlib/v/checker/check_types.v +++ b/vlib/v/checker/check_types.v @@ -219,18 +219,6 @@ pub fn (mut c Checker) check_expected_call_arg(got ast.Type, expected_ ast.Type, idx_expected := expected.idx() if idx_got in [ast.byteptr_type_idx, ast.charptr_type_idx] || idx_expected in [ast.byteptr_type_idx, ast.charptr_type_idx] { - igot := int(got) - iexpected := int(expected) - // TODO: remove; transitional compatibility for byteptr === &byte - if (igot == ast.byteptr_type_idx && iexpected == 65545) - || (iexpected == ast.byteptr_type_idx && igot == 65545) { - return - } - // TODO: remove; transitional compatibility for charptr === &char - if (igot == ast.charptr_type_idx && iexpected == 65551) - || (iexpected == ast.charptr_type_idx && igot == 65551) { - return - } muls_got := got.nr_muls() muls_expected := expected.nr_muls() if idx_got == ast.byteptr_type_idx && idx_expected == ast.u8_type_idx