Skip to content

Commit

Permalink
refactor(location)!: remove default_country definitions (#2740)
Browse files Browse the repository at this point in the history
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
  • Loading branch information
matthewmayer and ST-DDT committed Mar 14, 2024
1 parent 5ef8ef1 commit a409b46
Show file tree
Hide file tree
Showing 121 changed files with 3 additions and 180 deletions.
3 changes: 3 additions & 0 deletions docs/guide/upgrading_v9/2740.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### faker.definitions.location.default_country removed

These definitions have been removed, as they were not used by any public method, and were not useful for locales which don't correspond directly to a single country, like `ar`.
1 change: 0 additions & 1 deletion src/locales/af_ZA/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/af_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
state,
street_pattern,
Expand Down
1 change: 0 additions & 1 deletion src/locales/ar/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/ar/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
Expand All @@ -20,7 +19,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
default_country,
postcode,
secondary_address,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/az/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/az/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
Expand All @@ -21,7 +20,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
default_country,
postcode,
secondary_address,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/cs_CZ/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/cs_CZ/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
Expand All @@ -21,7 +20,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
default_country,
postcode,
secondary_address,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/da/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/da/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import default_country from './default_country';
import direction from './direction';
import direction_abbr from './direction_abbr';
import postcode from './postcode';
Expand All @@ -21,7 +20,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
default_country,
direction,
direction_abbr,
postcode,
Expand Down
1 change: 0 additions & 1 deletion src/locales/de/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/de/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import country from './country';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
Expand All @@ -25,7 +24,6 @@ const location: LocationDefinition = {
city_prefix,
city_suffix,
country,
default_country,
postcode,
secondary_address,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/de_AT/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/de_AT/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
Expand All @@ -21,7 +20,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
default_country,
postcode,
secondary_address,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/de_CH/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/de_CH/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country_code from './country_code';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -17,7 +16,6 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country_code,
default_country,
postcode,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/dv/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/dv/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import city_name from './city_name';
import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import default_country from './default_country';
import postcode from './postcode';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';
Expand All @@ -17,7 +16,6 @@ const location: LocationDefinition = {
city_pattern,
city_prefix,
city_suffix,
default_country,
postcode,
street_pattern,
street_suffix,
Expand Down
1 change: 0 additions & 1 deletion src/locales/el/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/el/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
street_pattern,
};

Expand Down
1 change: 0 additions & 1 deletion src/locales/en/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import country from './country';
import county from './county';
import default_country from './default_country';
import direction from './direction';
import direction_abbr from './direction_abbr';
import postcode from './postcode';
Expand All @@ -30,7 +29,6 @@ const location: LocationDefinition = {
city_suffix,
country,
county,
default_country,
direction,
direction_abbr,
postcode,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_AU/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_AU/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -15,7 +14,6 @@ import street_suffix from './street_suffix';
const location: LocationDefinition = {
building_number,
city_pattern,
default_country,
postcode,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_AU_ocker/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_AU_ocker/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import region from './region';
import state from './state';
Expand All @@ -19,7 +18,6 @@ const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
default_country,
postcode,
region,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_CA/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_CA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -14,7 +13,6 @@ import street_pattern from './street_pattern';
const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_GB/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_GB/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import county from './county';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -24,7 +23,6 @@ const location: LocationDefinition = {
city_prefix,
city_suffix,
county,
default_country,
postcode,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_GH/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_GH/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_address from './street_address';
Expand All @@ -18,7 +17,6 @@ const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
default_country,
postcode,
state,
street_address,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_HK/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_HK/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import postcode_by_state from './postcode_by_state';
import state from './state';
Expand All @@ -21,7 +20,6 @@ const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
default_country,
postcode,
postcode_by_state,
state,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_IE/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_IE/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
import type { LocationDefinition } from '../../..';
import city_pattern from './city_pattern';
import county from './county';
import default_country from './default_country';
import postcode from './postcode';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_pattern,
county,
default_country,
postcode,
street_pattern,
};
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_IN/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_IN/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -14,7 +13,6 @@ import street_pattern from './street_pattern';
const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_NG/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_NG/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
state,
street_pattern,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_US/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_US/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import type { LocationDefinition } from '../../..';
import city_pattern from './city_pattern';
import county from './county';
import default_country from './default_country';
import postcode_by_state from './postcode_by_state';
import street_name from './street_name';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_pattern,
county,
default_country,
postcode_by_state,
street_name,
street_pattern,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_ZA/location/default_country.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/en_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
state,
street_pattern,
Expand Down
1 change: 0 additions & 1 deletion src/locales/eo/location/default_country.ts

This file was deleted.

0 comments on commit a409b46

Please sign in to comment.