From 5de9dcb7976f1c581601ab876d6bf3087991c4f6 Mon Sep 17 00:00:00 2001
From: rubenwardy <rw@rubenwardy.com>
Date: Wed, 4 Apr 2018 17:42:12 +0100
Subject: Move api_helpers.lua in api.lua

---
 api_helpers.lua | 31 -------------------------------
 1 file changed, 31 deletions(-)
 delete mode 100644 api_helpers.lua

(limited to 'api_helpers.lua')

diff --git a/api_helpers.lua b/api_helpers.lua
deleted file mode 100644
index 6e4c514..0000000
--- a/api_helpers.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-function awards.player(name)
-	local data = awards.players[name] or {}
-	awards.players[name] = data
-	data.name = data.name or name
-	data.unlocked = data.unlocked or {}
-	return data
-end
-
-function awards.player_or_nil(name)
-	return awards.players[name]
-end
-
-function awards._order_awards(name)
-	local done = {}
-	local retval = {}
-	local player = awards.player(name)
-	if player and player.unlocked then
-		for _,got in pairs(player.unlocked) do
-			if awards.def[got] then
-				done[got] = true
-				table.insert(retval,{name=got,got=true})
-			end
-		end
-	end
-	for _,def in pairs(awards.def) do
-		if not done[def.name] then
-			table.insert(retval,{name=def.name,got=false})
-		end
-	end
-	return retval
-end
-- 
cgit v1.2.3