summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-08-01 23:52:56 -0500
committerGitHub <noreply@github.com>2023-08-01 23:52:56 -0500
commitec8ae8f093d34a7236774ddf914b6edb205fe526 (patch)
tree135b60e06122d220cfd2c93f44c8201ae02e918e /lib/frrlua.c
parent5da58d355a094100ddedb861aa5555be8a4ea1bf (diff)
parent27dbf81a7375ccb352a35261c6c9ee3aa3fcb98f (diff)
Merge pull request #14125 from opensourcerouting/fix/drop_unused_lua_stuff
lib: Do not use time_t as a special Lua encoder/decoder
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 5b49d32a9c..e626efe20b 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -259,25 +259,6 @@ void *lua_tosockunion(lua_State *L, int idx)
return su;
}
-void lua_pushtimet(lua_State *L, const time_t *time)
-{
- lua_pushinteger(L, *time);
-}
-
-void lua_decode_timet(lua_State *L, int idx, time_t *t)
-{
- *t = lua_tointeger(L, idx);
- lua_pop(L, 1);
-}
-
-void *lua_totimet(lua_State *L, int idx)
-{
- time_t *t = XCALLOC(MTYPE_SCRIPT_RES, sizeof(time_t));
-
- lua_decode_timet(L, idx, t);
- return t;
-}
-
void lua_pushintegerp(lua_State *L, const long long *num)
{
lua_pushinteger(L, *num);