Skip to content

Commit

Permalink
Get rid of useless "special" variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
toadchild committed May 16, 2016
1 parent f5584f1 commit 70e3f93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doconversion.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@

# convert file
my $infile;
my $special = 0;
if($id =~ m/^\d\d\d$/){
$infile = "$src/marker-$id.ppm";
}else{
$infile = "$src/$id.png";
$id =~ s/ /_/g;
$special = 1;
}

# Skip files that are not in this directory
Expand All @@ -39,7 +37,7 @@

my $resize = "";
my ($xres, $yres) = imgsize($infile);
if($special && $xres > 350){
if($xres > 350){
my $width = 350;
my $height = $yres * $width / $xres;
$resize = "-resize ".$width."x".$height;
Expand Down

0 comments on commit 70e3f93

Please sign in to comment.