This is an archive of the discontinued LLVM Phabricator instance.

[lldb-mi] Remove unused bool results.
ClosedPublic

Authored by brucem on Jul 22 2015, 6:42 AM.

Details

Summary

Many methods, in particular various 'Add' methods didn't have
any actual failure scenarios that were being emitted. This meant
that a lot of surrounding code could be simplified.

Diff Detail

Repository
rL LLVM

Event Timeline

brucem updated this revision to Diff 30344.Jul 22 2015, 6:42 AM
brucem retitled this revision from to [lldb-mi] Remove unused bool results..
brucem updated this object.
brucem added reviewers: abidh, ki.stfu.
brucem added a subscriber: lldb-commits.
abidh accepted this revision.Jul 22 2015, 10:02 AM
abidh edited edge metadata.

Apart from one little comment, looks good.

tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
512 ↗(On Diff #30344)

Does this function return false somewhere or this return type is also redundant.

This revision is now accepted and ready to land.Jul 22 2015, 10:02 AM
brucem added inline comments.Jul 22 2015, 10:06 AM
tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
512 ↗(On Diff #30344)

That return type is also redundant. There are some of them remaining, especially in threading stuff. But I wanted to keep the current patch relatively self-contained.

This revision was automatically updated to reflect the committed changes.