This is an archive of the discontinued Mercurial Phabricator instance.

debug: remove an 'if ui.debug()' that is not doing anything
ClosedPublic

Authored by spectral on Dec 18 2017, 8:48 PM.

Details

Summary

ui.debug() does not return a value.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

spectral created this revision.Dec 18 2017, 8:48 PM
quark added a subscriber: quark.Dec 18 2017, 10:48 PM

I think it should be ui.debugflag.

In D1719#29390, @quark wrote:

I think it should be ui.debugflag.

I agree that's probably what was intended, but is it helpful to have it if it's never once been activated in 5 years? (added: 4bec77e62c00, 2012-12-13). (Ironically, if I ever actually ran this command I'd probably want it to have the behavior I'm deleting, but considering no one else has wanted it enough to fix the issue here, it feels too much like dead code/YAGNI for my tastes)

krbullock accepted this revision.Dec 21 2017, 5:50 PM
krbullock added a subscriber: krbullock.

Seems reasonable.

This revision is now accepted and ready to land.Dec 21 2017, 5:50 PM
This revision was automatically updated to reflect the committed changes.