Remove unnecessary calls to is_mi_like_p in print_thread_info_1
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 9 Sep 2017 20:51:58 +0000 (22:51 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 9 Sep 2017 20:51:58 +0000 (22:51 +0200)
commit0d64823e51de0b0e0a94bdf88940310342a6e6fa
treedb293235435a849e602a99c2d2bd176dc03bf5dc
parenteb1e02fd05688c28686a02f197c5e7cb0a5d6a27
Remove unnecessary calls to is_mi_like_p in print_thread_info_1

There are two calls to uiout->is_mi_like_p in the else branch of a
if (uiout->is_mi_like_p ()), we already know they will return false.

A bit lower, there are two if (!uiout->is_mi_like_p ()) that we can
merge.

gdb/ChangeLog:

* thread.c (print_thread_info_1): Remove unnecessary calls to
uiout->is_mi_like_p.
gdb/ChangeLog
gdb/thread.c
This page took 0.025714 seconds and 4 git commands to generate.