[Evolution-hackers] GroupWise calendar backend: Small logic overdesign
- From: Jules Colding <colding omesc com>
- To: Evolution Hackers <evolution-hackers gnome org>
- Subject: [Evolution-hackers] GroupWise calendar backend: Small logic overdesign
- Date: Tue, 27 Jun 2006 13:40:28 +0200
Hi,
Just a quick note.... In e_cal_backend_groupwise_create_object() we
find:
###############
if (priv->mode == CAL_MODE_LOCAL) {
in_offline(cbgw);
return GNOME_Evolution_Calendar_RepositoryOffline;
}
###############
About 16 lines later we see:
###############
switch (priv->mode) {
case CAL_MODE_ANY :
case CAL_MODE_REMOTE :
###############
This switch() statement is obviously not needed as the mode can never be
in any other mode but ANY, REMOTE or LOCAL.
Best regards,
jules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]