share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
changeset 9782 6c3cad32d4f4
parent 9760 395ca7fe6362
child 9810 54c0fdec4600
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Wed Dec 11 17:58:32 2013 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Thu Dec 12 02:52:37 2013 +0200
@@ -612,25 +612,6 @@
 	return false
 end
 
--- splits number by delimiter
-function split(s, delimiter)
-	local res = {}
-	local first = ""
-	for i=1,s:len() do
-		if s:sub(1,1) == delimiter then
-			table.insert(res, tonumber(first))
-			first = ""
-		else
-			first = first..s:sub(1,1)
-		end
-		s = s:sub(2)
-	end
-	if first:len() > 0 then
-		table.insert(res, tonumber(first))
-	end
-	return res
-end
-
 function saveCheckPointLocal(cpoint)
 	AnimCaption(hero.gear, loc("Checkpoint reached!"), 3000)
 	saveCheckpoint(cpoint)