Remove unused convert_entities function
authorJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Wed, 10 May 2017 22:22:29 +0000 (22:22 +0000)
committerJavier Fernández-Sanguino <javier.fernandez-sanguino@projectaon.org>
Wed, 10 May 2017 22:22:29 +0000 (22:22 +0000)
git-svn-id: https://projectaon.org/data/trunk@2634 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

common/scripts/gbtoepub.pl

index da50fbe..93586eb 100755 (executable)
@@ -485,40 +485,6 @@ sub get_series_number {
     return $series_number;
 }
 
-# Convert character entities to their correspondent values
-sub convert_entities {
-    my ($text) = @_;
-
-    $text =~ s/\<ch.apos\/\>/'/g; 
-    $text =~ s/\<ch.nbsp\/\>/ /g;
-    $text =~ s/\<ch.plusmn\/\>/+-/g;
-    $text =~ s/\<ch.aacute\/\>/á/g;
-    $text =~ s/\<ch.eacute\/\>/é/g;
-    $text =~ s/\<ch.iacute\/\>/í/g;
-    $text =~ s/\<ch.oacute\/\>/ó/g;
-    $text =~ s/\<ch.uacute\/\>/ú/g;
-    $text =~ s/\<ch.ntilde\/\>/ñ/g;
-    $text =~ s/\<ch.Aacute\/\>/Á/g;
-    $text =~ s/\<ch.Eacute\/\>/É/g;
-    $text =~ s/\<ch.Iacute\/\>/Í/g;
-    $text =~ s/\<ch.Oacute\/\>/Ó/g;
-    $text =~ s/\<ch.Uacute\/\>/Ú/g;
-    $text =~ s/\<ch.auml\/\>/ä/g;
-    $text =~ s/\<ch.euml\/\>/ë/g;
-    $text =~ s/\<ch.iuml\/\>/ï/g;
-    $text =~ s/\<ch.ouml\/\>/ö/g;
-    $text =~ s/\<ch.uuml\/\>/ü/g;
-    $text =~ s/\<ch.Ntilde\/\>/Ñ/g;
-    $text =~ s/\<ch.acute\/\>/´/g;
-    $text =~ s/\<ch.iexcl\/\>/¡/g;
-    $text =~ s/\<ch.iquest\/\>/¿/g;
-    $text =~ s/\<ch.laquo\/\>/«/g;
-    $text =~ s/\<ch.raquo\/\>/»/g;
-    $text =~ s/\<ch.ampersand\/\>/&/g;
-
-    return $text;
-}
-
 # Quote metacaracters for shell use
 sub quote_shell {
     my ($text) = @_;