From 6bd8c2d7d8589d3d0019599c75de05b20ae18f44 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 29 Jul 2009 23:11:07 +0200 Subject: Ignore default value for required params Parameters should never have both the default and the required flags set, as required means the user has to fill in a value. When this happens anyway, the default dlag should be ignored, so we can avoid looking up the default value when checking for an account settings' validity. --- libempathy/empathy-account-settings.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 21109d261..1c5bc719a 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -1072,10 +1072,6 @@ empathy_account_settings_is_valid (EmpathyAccountSettings *settings) continue; } - /* see if there's a default value */ - if (empathy_account_settings_get_default (settings, current)) - continue; - missed = TRUE; break; } -- cgit v1.2.3