]> Sergey Matveev's repositories - nnn.git/commitdiff
wallpaper plugin: remove unneeded code
authorXerillic <xerillic@gmail.com>
Wed, 13 Sep 2023 23:53:55 +0000 (19:53 -0400)
committerXerillic <xerillic@gmail.com>
Wed, 13 Sep 2023 23:53:55 +0000 (19:53 -0400)
plugins/wallpaper

index 79583aa0cebc42d93ffc0056a6c1544c954d1563..966e7ce55653f9bea27d5b42c52fa082035cbc19 100755 (executable)
@@ -8,14 +8,8 @@
 # Shell: POSIX compliant
 # Author: juacq97
 
-selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
 resp=
 
-add_file ()
-{
-    printf '%s\0' "$@" >> "$selection"
-}
-
 if [ -n "$1" ]; then
     if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
         if [ "$XDG_SESSION_TYPE" = "x11" ]; then