]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: Remove dict_settings.value_type
authorSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Mon, 3 May 2021 11:15:54 +0000 (12:15 +0100)
committerSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Thu, 1 Jul 2021 19:02:46 +0000 (20:02 +0100)
It was originally added to dict-db and no other backend uses it. With dict-db
removed, there is no need to keep it.

src/auth/db-oauth2.c
src/dict/dict-connection.c
src/lib-dict/dict-client.c
src/lib-dict/dict.h
src/lib-oauth2/test-oauth2-jwt.c

index 68946d5ef2059fe9d411f7b3f46d65d8754484f3..7d1874efec80524f7766d20ac0f4d0faeceb7542 100644 (file)
@@ -296,7 +296,6 @@ struct db_oauth2 *db_oauth2_init(const char *config_path)
                struct dict_settings dict_set = {
                        .username = "",
                        .base_dir = global_auth_settings->base_dir,
-                       .value_type = DICT_DATA_TYPE_STRING,
                        .event_parent = auth_event,
                };
                if (dict_init(db->set.local_validation_key_dict, &dict_set,
index 2375c78f499f90041348539d7d4a7f0633570e97..b7b36a1f5dea359cd169cd7284a9a93eb27e5774 100644 (file)
@@ -94,7 +94,6 @@ static int dict_connection_dict_init(struct dict_connection *conn)
        uri = strlist[i+1];
 
        i_zero(&dict_set);
-       dict_set.value_type = conn->value_type;
        dict_set.username = conn->username;
        dict_set.base_dir = dict_settings->base_dir;
        dict_set.event_parent = conn->conn.event;
index c34232a98a06eff429d3812b9731acb9aeff47b7..3539e6b920a680bdf73cf9855065232a09efc007 100644 (file)
@@ -750,7 +750,6 @@ client_dict_init(struct dict *driver, const char *uri,
        dict->dict = *driver;
        dict->conn.dict = dict;
        dict->conn.conn.event_parent = set->event_parent;
-       dict->value_type = set->value_type;
        dict->username = i_strdup(set->username);
        dict->idle_msecs = idle_msecs;
        dict->warn_slow_msecs = warn_slow_msecs;
index 47b0f170bdc0ac5a4b5dd7de1c4eb390818de691..194bcb4758003a111fe831053f40ce265f50608b 100644 (file)
@@ -32,7 +32,6 @@ enum dict_data_type {
 };
 
 struct dict_settings {
-       enum dict_data_type value_type;
        const char *username;
        const char *base_dir;
        /* home directory for the user, if known */
index 4c627e727588e9a8cffadeaa5f2f1fc0ce0d6171..80aa82c9a1e87dea4d5fa154e19e807e0a54c83e 100644 (file)
@@ -782,7 +782,6 @@ static void test_do_init(void)
        };
        struct dict_settings dict_set = {
                .username = "testuser",
-               .value_type = DICT_DATA_TYPE_STRING,
                .base_dir = ".",
        };