about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_sub.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-06-04 14:50:25 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-06-04 14:50:25 +0200
commit2d00444702661d7f5b989b2a7556aafeab4309fd (patch)
treee6ba7cf70e671efab30f6091a6032932eff888f0 /tests/unittests/test_cmd_sub.c
parentea62c3f29366f0f7b4b47bf0e52ee34882c33897 (diff)
downloadprofani-tty-2d00444702661d7f5b989b2a7556aafeab4309fd.tar.gz
statusbar: reduce duplicate code
status_bar_new() and status_bar_active() are almost identical.
Let's use one helper function to not duplicate code.

I thought about renaming both functions into one and adding another
parameter but didn't come up with a good name for the function that
clearly describes what it does. So staying with current names + helper
functions.
Diffstat (limited to 'tests/unittests/test_cmd_sub.c')
0 files changed, 0 insertions, 0 deletions