From d3db332c7d9bab3be5cbb04e1d9283627048ee05 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Mon, 11 Jun 2012 21:07:09 -0500 Subject: code reduction --- sboclean | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sboclean b/sboclean index e31f3ea..0b503bc 100755 --- a/sboclean +++ b/sboclean @@ -62,17 +62,7 @@ sub remove_stuff { } } -sub clean_distfiles { - remove_stuff ($config{SBO_HOME} .'/distfiles'); - return; -} - -sub clean_workdirs { - remove_stuff ('/tmp/SBo'); - return; -} - -clean_distfiles () if $clean_dist eq 'TRUE'; -clean_workdirs () if $clean_work eq 'TRUE'; +remove_stuff ($config{SBO_HOME} . '/distfiles') if $clean_dist eq 'TRUE'; +remove_stuff ('/tmp/SBo') if $clean_work eq 'TRUE'; exit 0; -- cgit v1.2.3