Skip to content

Commit 6d3eb0e

Browse files
committed
remove unneeded api function
1 parent 5518bd7 commit 6d3eb0e

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

api.lua

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,3 @@ end
6969
function lib.GetAllAnimatedIcons()
7070
return clone(a)
7171
end
72-
73-
74-
-- cache
75-
local keys = {}
76-
local keysCached = false
77-
--- Returns a random user
78-
--- @return string id of a random user with a static icon
79-
function lib.GetRandomUserId()
80-
if not keysCached then
81-
for userId in pairs(s) do
82-
table.insert(keys, userId)
83-
end
84-
keysCached = true
85-
end
86-
87-
if #keys > 0 then
88-
local randomIndex = math.random(#keys)
89-
return keys[randomIndex]
90-
end
91-
92-
return nil
93-
end

0 commit comments

Comments
 (0)