Remove the (now unused) master_passphrase_change plugin function.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 28 Jul 2016 11:12:03 +0000 (13:12 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 28 Jul 2016 11:12:03 +0000 (13:12 +0200)
src/common/plugin.c
src/common/plugin.h
src/password.c

index 0e431902f47d8788429f71132686b7d8d69fcead..e31dcd6589ff654ac4fb127a387dc9c789d4e85f 100644 (file)
@@ -747,17 +747,6 @@ const gchar *plugin_get_error(Plugin *plugin)
        return plugin->error;
 }
 
-void plugins_master_passphrase_change(const gchar *oldp, const gchar *newp) {
-       Plugin *plugin = NULL;
-       GSList *cur;
-       for (cur = plugin_get_list(); cur; cur = g_slist_next(cur)) {
-               plugin = (Plugin *)cur->data;
-               if (plugin->master_passphrase_change != NULL) {
-                       plugin->master_passphrase_change(oldp, newp);
-               }
-       }
-}
-
 /* Generally called in plugin_init() function of each plugin. It check the
  * minimal and compiled version of claws binary required by the plugin.
  * If (@minimum_claws_version == 0 || @compiled_claws_version == 0), don't
index b153b6b3360781e8a6eb7a4d265e3dc6b23fdad2..cc727462090f8cfb5e85a221dd2808f9267c127c 100644 (file)
@@ -59,8 +59,6 @@ void plugin_unload_all                (const gchar     *type);
 void plugin_save_list          (void);
 void plugin_load_standard_plugins (void);
 
-void plugins_master_passphrase_change(const gchar *oldp, const gchar *newp);
-
 GSList *plugin_get_list                (void);
 GSList *plugin_get_unloaded_list(void);
 const gchar *plugin_get_name   (Plugin          *plugin);
index 2040698caa9c6330efc616de59483d41716f2562..ccbba17d51412d190ad07b9f90e155e2b2ed8dc1 100644 (file)
@@ -266,11 +266,6 @@ void master_passphrase_change(const gchar *oldp, const gchar *newp)
        debug_print("Reencrypting all account passwords...\n");
        passwd_store_reencrypt_all(oldp, newp);
 
-       /* Now reencrypt all plugins passwords fields 
-        * FIXME: Unloaded plugins won't be able to update their stored passwords
-        */
-       plugins_master_passphrase_change(oldp, newp);
-
        master_passphrase_forget();
 }
 #endif