mod_storage_sql: Use is_stanza() from util.stanza

This commit is contained in:
Kim Alvefur 2016-11-28 07:30:39 +01:00
parent 2d642bfb76
commit b89b681cd2

View file

@ -7,10 +7,8 @@ local xml_parse = require "util.xml".parse;
local uuid = require "util.uuid";
local resolve_relative_path = require "util.paths".resolve_relative_path;
local stanza_mt = require"util.stanza".stanza_mt;
local getmetatable = getmetatable;
local is_stanza = require"util.stanza".is_stanza;
local t_concat = table.concat;
local function is_stanza(x) return getmetatable(x) == stanza_mt; end
local noop = function() end
local unpack = unpack