Review Request: Remove some useless calls

Martin Klapetek martin.klapetek at gmail.com
Thu Jun 2 00:59:19 CEST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101488/
-----------------------------------------------------------

Review request for Telepathy.


Summary
-------

As suggested by oggis, the account->becomeReady() is useless there --

<oggis_> void MainWidget::onNewAccountAdded(const Tp::AccountPtr& account)
<oggis_> { Tp::PendingReady *ready = account->becomeReady();
<oggis_> why, although you have an account factory with a lot of features including FeatureCore set up for the account manager?
<oggis_> that means that any account signaled to you using newAccount will have becomeReady with those features already called
<oggis_> (and finished)
<oggis_> that's your AccountManager::newAccount handler
<oggis_> in which you're calling becomeReady(), which means "give me an operation which emits finished() when Account::FeatureCore is ready on the account"
<oggis_> although by passing Account::FeatureCore in the factory, you already say to the library "prepare FeatureCore for all accounts before signaling them to me in the first place"


Diffs
-----

  main-widget.h 96f228e 
  main-widget.cpp 4b6c248 

Diff: http://git.reviewboard.kde.org/r/101488/diff


Testing
-------

Everything works.


Thanks,

Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110601/b06d67b3/attachment.htm 


More information about the KDE-Telepathy mailing list