Skip to content

Commit

Permalink
CORE-791: Remove country exception so far it's already into the Count…
Browse files Browse the repository at this point in the history
…ry module
  • Loading branch information
PhilinTv committed Nov 13, 2017
1 parent 96c8ee7 commit ba34720
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
10 changes: 0 additions & 10 deletions src/Spryker/Zed/Customer/Business/Customer/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Orm\Zed\Customer\Persistence\SpyCustomerAddress;
use Propel\Runtime\Collection\ObjectCollection;
use Spryker\Zed\Customer\Business\Exception\AddressNotFoundException;
use Spryker\Zed\Customer\Business\Exception\CountryNotFoundException;
use Spryker\Zed\Customer\Business\Exception\CustomerNotFoundException;
use Spryker\Zed\Customer\Dependency\Facade\CustomerToCountryInterface;
use Spryker\Zed\Customer\Dependency\Facade\CustomerToLocaleInterface;
Expand Down Expand Up @@ -352,21 +351,12 @@ protected function getCustomerFromCustomerTransfer(CustomerTransfer $customerTra
}

/**
* @throws \Spryker\Zed\Customer\Business\Exception\CountryNotFoundException
*
* @return int
*/
protected function getCustomerCountryId()
{
$countryTransfer = $this->countryFacade->getCountryByIso2Code($this->getIsoCode());

if (!$countryTransfer->getIdCountry()) {
throw new CountryNotFoundException(sprintf(
'Country not found for ISO code `%s`.',
$this->getIsoCode()
));
}

return $countryTransfer->getIdCountry();
}

Expand Down

This file was deleted.

0 comments on commit ba34720

Please sign in to comment.