Bug 15631: Koha::Cities - remove getzipnamecity
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Jan 2016 14:59:48 +0000 (14:59 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:53:51 +0000 (03:53 +0000)
C4::Members::getzipnamecity was not used and can be remove safely.

Test plan:
  git grep getzipnamecity
should not return any result.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/Members.pm

index 9ee02b8..f758501 100644 (file)
@@ -67,7 +67,6 @@ BEGIN {
         &GetPendingIssues
         &GetAllIssues
 
-        &getzipnamecity
         &getidcity
 
         &GetFirstValidEmailAddress
@@ -1363,25 +1362,6 @@ sub get_cardnumber_length {
     return ( $min, $max );
 }
 
-=head2 getzipnamecity (OUEST-PROVENCE)
-
-take all info from table city for the fields city and  zip
-check for the name and the zip code of the city selected
-
-=cut
-
-sub getzipnamecity {
-    my ($cityid) = @_;
-    my $dbh      = C4::Context->dbh;
-    my $sth      =
-      $dbh->prepare(
-        "select city_name,city_state,city_zipcode,city_country from cities where cityid=? ");
-    $sth->execute($cityid);
-    my @data = $sth->fetchrow;
-    return $data[0], $data[1], $data[2], $data[3];
-}
-
-
 =head2 getdcity (OUEST-PROVENCE)
 
 recover cityid  with city_name condition