Commit b51ff787 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Cleanup code that is not used anymore.

parent f2cd4415
......@@ -25,17 +25,15 @@ use POSIX qw(strftime);
sub usage()
{
print(STDERR
"Usage: template_delete [-q] [-w] [-r] <guid/vers>\n".
"Usage: template_delete [-q] [-r] <guid/vers>\n".
"switches and arguments:\n".
"-w - wait for template to be instantiated\n".
"-q - be less chatty\n".
"-r - Delete recursively\n".
"<guid/vers> - GUID and version to swapin\n");
exit(-1);
}
my $optlist = "qwdr";
my $optlist = "qdr";
my $quiet = 0;
my $waitmode = 0;
my $debug = 0;
my $recursive = 0;
......@@ -120,15 +118,6 @@ if (! UserDBInfo($dbuid, \$user_name, \$user_email)) {
# Now parse arguments.
ParseArgs();
#
# In wait mode, block SIGINT until we spin off the background process.
#
if ($waitmode) {
$SIG{QUIT} = 'IGNORE';
$SIG{TERM} = 'IGNORE';
$SIG{INT} = 'IGNORE';
}
#
# Grab template info.
#
......@@ -269,9 +258,6 @@ sub ParseArgs()
if (defined($options{"q"})) {
$quiet = 1;
}
if (defined($options{"w"})) {
$waitmode = 1;
}
if (defined($options{"d"})) {
$debug = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment