refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-15 19:01:39 +02:00
parent e6b8868849
commit 2f594e7128
8 changed files with 12 additions and 21 deletions
-9
View File
@@ -158,15 +158,6 @@ function public.trim(str)
return gsub(str, '^%s*(.-)%s*$', '%1')
end
function public.join(parts, separator)
local str = parts[1] or ''
for i=2,getn(parts) do
if not parts[i] then break end
str = str..separator..parts[i]
end
return str
end
function public.split(str, separator)
local parts = {}
while true do