shared/logs-show: Remove unused OUTPUT_FOLLOW
authorHATAYAMA Daisuke <d.hatayama@fujitsu.com>
Sat, 29 Feb 2020 21:31:38 +0000 (06:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Mar 2020 09:27:55 +0000 (18:27 +0900)
commit27f31daf3e2288583c6d1e2a11e578463eecef0a
treef38da8bb115b56f178856ad6d402a271db155784
parentef62949a23a2d6dc722659cc527f6e0006135dc9
shared/logs-show: Remove unused OUTPUT_FOLLOW

As of the commit aae9a96d4b3a8562af9e8c6a23871b442645b954 removing --follow
option in systemctl command, OUTPUT_FOLLOW has never been set anywhere. Let's
remove it.

The condition expression of the if-statement in show_journal() that refers to
OUTPUT_FOLLOW now thus evaluates always to true. Hence, the call of
sd_journal_wait() is in dead code, and the outer infinite for-loop is
meaningless, which we remove as cleanup.

There is no functional change by this commit.
src/shared/logs-show.c
src/shared/output-mode.h