Skip to content

Commit 61d02ff

Browse files
committed
Remove unused code
1 parent b952446 commit 61d02ff

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/screenshot-settings.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ if [ -z "$LOCATION" ]; then
3939
LOCATION=$DEFAULT_LOCATION
4040
fi
4141

42-
# Convert to bool
42+
# Convert from bool
4343
if [ "$DISABLE_SHADOWS" = "1" ]; then
4444
DISABLE_SHADOWS=$TRUE
4545
else
4646
DISABLE_SHADOWS=$FALSE
4747
fi
4848

49-
# Determine the new value
49+
# Determine and set the new value
5050
if [ "$1" = "disable-shadows" ]; then
5151
if [ "$DISABLE_SHADOWS" = $TRUE ]; then
5252
DISABLE_SHADOWS=$FALSE
@@ -69,9 +69,6 @@ elif [ "$1" = "location" ]; then
6969
killall SystemUIServer
7070
fi
7171

72-
SET_DISABLE_SHADOWS="$0 disable-shadows"
73-
SET_TYPE="$0 type"
74-
7572
# Menu
7673
echo ":camera:"
7774
echo "---"

0 commit comments

Comments
 (0)