From 4b9e8a7ab9f89f3566c3017c787740e777a33a9f Mon Sep 17 00:00:00 2001 From: Moeta Yuko Date: Tue, 13 Feb 2024 13:29:16 +0800 Subject: [PATCH] chore: remove useless relative_path --- lua/Trans/init.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lua/Trans/init.lua b/lua/Trans/init.lua index b592e08..decb59a 100644 --- a/lua/Trans/init.lua +++ b/lua/Trans/init.lua @@ -42,12 +42,4 @@ local M = metatable('core', { M.metatable = metatable ----Get abs_path of file ----@param path string[] ----@param is_dir boolean? ----@return string -function M.relative_path(path, is_dir) - return M.plugin_dir .. table.concat(path, sep) .. (is_dir and sep or '') -end - return M