From bcacb8af72d8a3b148d8e21a2e36605b4d17b1a0 Mon Sep 17 00:00:00 2001 From: psergee Date: Mon, 27 Jun 2022 16:25:45 +0300 Subject: [PATCH] Remove unused file --- crud/common/state.lua | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 crud/common/state.lua diff --git a/crud/common/state.lua b/crud/common/state.lua deleted file mode 100644 index 940739a7..00000000 --- a/crud/common/state.lua +++ /dev/null @@ -1,23 +0,0 @@ -local uuid = require('uuid') - -local state = {} - -local states = {} - -function state.get(id) - id = id or uuid.str() - local op_state = states[id] - if op_state == nil then - op_state = { id = id } - states[id] = op_state - end - return op_state -end - -function state.clear(id) - assert(id ~= nil) - states[id] = nil - return true -end - -return state