]> git.mdlowis.com Git - proto/labwc.git/commit
action: Simplify the code
authorConsus <consus@ftml.net>
Mon, 28 Aug 2023 15:29:20 +0000 (18:29 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 1 Oct 2023 13:17:29 +0000 (14:17 +0100)
commit8988194785423280959fe072eeefb197d623e6ea
tree6c6630ad7589a295c3a8e9035786e8c099890ee2
parentccca62e4bc534ed0738f1376dbcd8e611dd858bd
action: Simplify the code

Replace action_str_from_arg() and action_get_first_arg() with
action_get_str().

Two reasons:

- This optimization reduces neither LOC nor amount of work done during
  the arguments processing, but requires two additional functions.

- Logging only the first argument of an action creates an illusion that
  only one argument was given. Instead of confusing the user just log
  the fact that the action is being handled.
src/action.c