Make GData plugin use the password store.
[claws.git] / src / plugins / gdata / cm_gdata_prefs.c
index 7ae6f555a64f166848c8c85b037e2c01c637106c..83a23a6c17be0784aff4ea84df71d2d6f5ec0daa 100644 (file)
@@ -152,16 +152,3 @@ void cm_gdata_prefs_done(void)
     prefs_gtk_unregister_page((PrefsPage*) &gdata_page);
   }
 }
-
-void cm_gdata_prefs_master_passphrase_change(const gchar *oldp, const gchar *newp) {
-       gchar *pass;
-       int i;
-
-       pass = password_decrypt(cm_gdata_config.oauth2_refresh_token, oldp);
-       if (pass != NULL) {
-               g_free(cm_gdata_config.oauth2_refresh_token);
-               cm_gdata_config.oauth2_refresh_token = password_encrypt(pass, newp);
-               memset(pass, 0, strlen(pass));
-       }
-       g_free(pass);
-}