Remove obsolete debug assert from PamAuth

Would be always hit in debug mode.
This commit is contained in:
Esa Korhonen 2020-06-05 19:03:27 +03:00
parent 5ebae9be90
commit 098ffde13c
3 changed files with 0 additions and 4 deletions

View File

@ -40,8 +40,6 @@ const string FIELD_HAS_PROXY = "proxy_grant";
const string FIELD_DB = "db";
const string FIELD_ROLE = "role";
const int NUM_FIELDS = 6;
const char* SQLITE_OPEN_FAIL = "Failed to open SQLite3 handle for file '%s': '%s'";
const char* SQLITE_OPEN_OOM = "Failed to allocate memory for SQLite3 handle for file '%s'.";

View File

@ -36,7 +36,6 @@ extern const string FIELD_DEF_ROLE;
extern const string FIELD_HAS_PROXY;
extern const string FIELD_IS_ROLE;
extern const string FIELD_ROLE;
extern const int NUM_FIELDS;
extern const char* SQLITE_OPEN_FAIL;
extern const char* SQLITE_OPEN_OOM;

View File

@ -491,7 +491,6 @@ void PamInstance::diagnostic(DCB* dcb)
static int diag_cb_json(json_t* data, int columns, char** row, char** field_names)
{
mxb_assert(columns == NUM_FIELDS);
json_t* obj = json_object();
for (int i = 0; i < columns; i++)
{