From f8bf3db5680d65cb0904c6dadb141105fa7c3f85 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 14 Feb 2022 19:05:24 +0200 Subject: [PATCH] markused: always include slice_ni & substr_ni too (support s#[] and a#[] in -skip-unused) --- vlib/v/markused/markused.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/markused/markused.v b/vlib/v/markused/markused.v index e0ecce0a34..6f62f9fec3 100644 --- a/vlib/v/markused/markused.v +++ b/vlib/v/markused/markused.v @@ -63,6 +63,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F '20.clone_static', '20.trim', '20.substr', + '20.substr_ni', '20.at', '20.at_with_check', '20.index_kmp', @@ -88,6 +89,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F '22.reverse', '22.repeat_to_depth', '22.slice', + '22.slice_ni', '22.slice2', '61.get', '61.set',