[Sugar-devel] [PATCH sugar 20/20] Remove unused command line options

Daniel Narvaez dwnarvaez at gmail.com
Mon Dec 10 14:11:46 EST 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

They seems to have been added for sugar-emulator, which is not
using them anymore. It seems unlikely anyone will run the
sugar script directly from the command line, and anyway it's
just about setting environment variables.
---
 bin/sugar.in |   31 -------------------------------
 1 file changed, 31 deletions(-)

diff --git a/bin/sugar.in b/bin/sugar.in
index d8f97b7..2de0c15 100644
--- a/bin/sugar.in
+++ b/bin/sugar.in
@@ -7,37 +7,6 @@ if [ "$(id -u)" -eq 0 -o "$(id -ru)" -eq 0 ] ; then
 	exit 3
 fi
 
-usage() {
-    cat <<EOF
-Usage: sugar [OPTION]..
-
-Start Sugar window manager.
-
-Optional arguments.
-  -d, --display DISPLAY     Display to start sugar
-  -s, --scaling SCALING     Scale Sugar theme
-                            Supported values: 72, 100
-EOF
-    exit 0
-}
-
-while [ $# -ne 0 ] ; do
-    case "$1" in
-      	-d | --display)
-            shift
-            export DISPLAY="$1"
-            ;;
-      	-s | --scaling)
-            shift
-            export SUGAR_SCALING="$1"
-            ;;
-      	-h | --help)
-            usage
-            ;;
-    esac
-    shift
-done
-
 # Set default profile dir
 if test -z "$SUGAR_PROFILE"; then
     export SUGAR_PROFILE=default
-- 
1.7.10.4



More information about the Sugar-devel mailing list