Skip to content

Commit 7ab4a75

Browse files
Merge pull request #3014 from faker-ruby/sb-remove-deprecated-generators
Removes deprecated generators
2 parents b5a034c + 8640f3b commit 7ab4a75

File tree

15 files changed

+0
-428
lines changed

15 files changed

+0
-428
lines changed

lib/faker/default/id_number.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,4 @@ def _translate(key)
421421
end
422422
end
423423
end
424-
425-
include Faker::Deprecator
426-
deprecate_generator('IDNumber', IdNumber)
427424
end

lib/faker/default/theater.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ def play
4646
end
4747
end
4848
end
49-
50-
include Faker::Deprecator
51-
deprecate_generator('Show', Theater)
5249
end

lib/faker/games/heroes_of_the_storm.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ def battleground
1717
fetch('heroes_of_the_storm.battlegrounds')
1818
end
1919

20-
##
21-
# This method is deprecated. The implementation will be removed in a near future release.
22-
# Use `HeroesOfTheStorm.class_name` instead.
23-
#
24-
# @deprecated Use {#class_name} instead.
25-
def class
26-
warn '`HeroesOfTheStorm.class` is deprecated. Use `HeroesOfTheStorm.class_name` instead.'
27-
28-
super
29-
end
30-
3120
##
3221
# Produces a class name from Heroes of the Storm.
3322
#

lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,5 @@ def country
4444
end
4545
end
4646
end
47-
48-
include Faker::Deprecator
49-
deprecate_generator('FmaBrotherhood', FullmetalAlchemistBrotherhood)
5047
end
5148
end

lib/faker/locations/australia.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ def state
4646
end
4747
end
4848
end
49-
50-
include Deprecator
51-
deprecate_generator('Australia', Locations::Australia)
5249
end

lib/faker/tv_shows/buffy.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,6 @@ def actor
4545
fetch('buffy.actors')
4646
end
4747

48-
##
49-
# Produces a actor from Buffy the Vampire Slayer.
50-
#
51-
# @return [String]
52-
#
53-
# @example
54-
# Faker::TvShows::Buffy.celebrity #=> "John Ritter"
55-
#
56-
# @deprecated Use the `actor` method instead.
57-
#
58-
# @faker.version 1.9.2
59-
alias celebrity actor
60-
6148
##
6249
# Produces a big bad from Buffy the Vampire Slayer.
6350
#

lib/faker/tv_shows/dr_who.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,6 @@ def villain
8484
fetch('dr_who.villains')
8585
end
8686

87-
##
88-
# Produces a villain from Doctor Who.
89-
#
90-
# @return [String]
91-
#
92-
# @example
93-
# Faker::TvShows::DrWho.villian #=> "The Master"
94-
#
95-
# @deprecated Use the correctly-spelled `villain` method instead.
96-
#
97-
# @faker.version 1.8.0
98-
alias villian villain
99-
10087
##
10188
# Produces a species from Doctor Who.
10289
#

lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ def actor
3232
fetch('the_fresh_prince_of_bel_air.actors')
3333
end
3434

35-
##
36-
# Produces a actor from The Fresh Prince of Bel-Air.
37-
#
38-
# @return [String]
39-
#
40-
# @example
41-
# Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
42-
#
43-
# @deprecated Use the `actor` method instead.
44-
#
45-
# @faker.version 1.8.3
46-
alias celebrity actor
47-
4835
##
4936
# Produces a quote from The Fresh Prince of Bel-Air.
5037
#

0 commit comments

Comments
 (0)