pLuaRecord cleanup (remove unused variables)