Remove redundant sub
parent
5da5dbe3f7
commit
128bc4a3dc
|
@ -22,13 +22,6 @@ sub file_name_to_id {
|
|||
return $file_name . "_cheat_sheet";
|
||||
}
|
||||
|
||||
sub id_to_file_name {
|
||||
my $id = shift;
|
||||
$id =~ s/_cheat_sheet//;
|
||||
$id =~ s/_/-/g;
|
||||
return "$id.json";
|
||||
}
|
||||
|
||||
# Iterate over all Cheat Sheet JSON files...
|
||||
foreach my $path (glob("$json_dir/*.json")){
|
||||
next if $ARGV[0] && $path ne "$json_dir/$ARGV[0].json";
|
||||
|
|
Loading…
Reference in New Issue