Remove useless code
authorJamie Cameron <jcameron@webmin.com>
Thu, 2 Jul 2009 23:20:04 +0000 (23:20 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 2 Jul 2009 23:20:04 +0000 (23:20 +0000)
mysql/backup_db.cgi

index 7d81b0e..7e4d8dc 100755 (executable)
@@ -129,15 +129,6 @@ if (!$in{'save'}) {
                                }
                        }
                unlink($file);
-               if ($in{'compress'} == 0) {
-                       $writer = ">$file";
-                       }
-               elsif ($in{'compress'} == 1) {
-                       $writer = "| gzip -c >$file";
-                       }
-               elsif ($in{'compress'} == 2) {
-                       $writer = "| bzip2 -c >$file";
-                       }
                local $err = &backup_database($db, $file, $in{'compress'},
                        $in{'drop'}, $in{'where_def'} ? undef : $in{'where'},
                        $in{'charset_def'} ? undef : $in{'charset'},