]> git.0d.be Git - empathy.git/commit
Remove weird maybe-null account special case.
authorWill Thompson <will.thompson@collabora.co.uk>
Fri, 12 Feb 2010 11:44:12 +0000 (11:44 +0000)
committerWill Thompson <will.thompson@collabora.co.uk>
Fri, 12 Feb 2010 11:44:12 +0000 (11:44 +0000)
commitf390cc946b33d2a22a2c47ec0f9b7470f254853e
treece91438705ffc2d901b1136492c9d0b21dc91b62
parent8d2e9d517beed4f272bed7ae9a2f59b96688e6c6
Remove weird maybe-null account special case.

I'm pretty sure this is unnecessary. Consider the four cases:

     value of data->account |   0   |   x        |
     value of       account | 0 | y | 0 |   y    |
a. data->account == NULL    | t | f | t |   f    |
b.       account == NULL    | t | t | f |   f    |
c.             a != b       | f | t | t |   f    |
d. data->account == account | t | f | f | x == y |
e.                    equal | t | f | f | x == y |

In all cases, the value of equal is identical to what it would have been
if the else branch were always taken. So... let's just always take the
else branch.
libempathy-gtk/empathy-account-chooser.c