From b43772cb7ad2a1466876209a429403bcfb0f9f91 Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Thu, 21 May 2009 16:34:46 +0000 Subject: [PATCH] Remove load_backup_queue(). This function is unused since a long time, and likely won't be used anytime soon, so delete it. Signed-off-by: Mauro Giachero --- src/usr/sbin/sbopkg | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index 850d1a4..3039b64 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -1292,37 +1292,6 @@ sort_queue() { continue } -load_backup_queue() { - # This function loads any backup queue and merges it with any current - # $TMPQUEUE. - - local PERMQUEUE=$SBOPKGTMP/sbopkg-savedqueue - local BACKUPQUEUE_LOCK=$SBOPKGTMP/sbopkg_backup_queue.lck - - if [[ -e $PERMQUEUE ]]; then - dialog --title "Load Temporary Backup Queue?" --yesno "$(crunch "A \ - temporary backup queue was found. Would you like to load it? \ - Either way, the temporary backup queue will be deleted. A new \ - temporary backup queue will be automatically created if you quit \ - sbopkg with items in the build queue.\n\nPress to load the \ - temporary backup queue into the build queue, or press to \ - cancel.")" 11 65 - if [[ $? == 0 ]]; then - touch $BACKUPQUEUE_LOCK - # Reading from $PERMQUEUE... - while read PICK; do - add_item_to_queue $PICK - done < $PERMQUEUE - rm -f $BACKUPQUEUE_LOCK - rm $PERMQUEUE - dialog --title "Done" --msgbox \ - "The backup queue has been loaded." 8 30 - else - rm -f $PERMQUEUE - fi - fi -} - queue_dir_lister() { # This function produces a checklist from the contents of the QUEUEDIR and # takes two arguments - the title and the text of the widget - and makes