]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut-catimages.sh): drop unused dwarning function
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 24 Jun 2024 15:21:01 +0000 (17:21 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 24 Jun 2024 22:00:30 +0000 (18:00 -0400)
shellcheck complains about SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).

The function `dwarning` is not called in `dracut-catimages.sh`. So drop
this unused function. It can be re-introduced once it is needed.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
dracut-catimages.sh

index b87e0003fddab6b589b80de414fb6fc5976db510..949e89b37a64b1d766a941d1db6cc3acb976ce51 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-dwarning() {
-    echo "Warning: $*" >&2
-}
-
 dinfo() {
     [[ $beverbose ]] && echo "$@" >&2
 }