Skip to content

Commit eda239a

Browse files
committed
Remove more dead code
1 parent 0592174 commit eda239a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Remove deprecated `JSON.unparse` method.
1111
* Remove deprecated `JSON.fast_unparse` method.
1212
* Remove deprecated `JSON.pretty_unparse` method.
13+
* Remove deprecated `JSON::UnparserError` constant.
14+
* Remove outdated `JSON::MissingUnicodeSupport` constant.
1315

1416
### 2025-03-12 (2.10.2)
1517

lib/json/common.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ def detailed_message(...)
161161
end
162162
end
163163

164-
# For backwards compatibility
165-
UnparserError = GeneratorError # :nodoc:
166-
167-
# This exception is raised if the required unicode support is missing on the
168-
# system. Usually this means that the iconv library is not installed.
169-
class MissingUnicodeSupport < JSONError; end
170-
171164
# Fragment of JSON document that is to be included as is:
172165
# fragment = JSON::Fragment.new("[1, 2, 3]")
173166
# JSON.generate({ count: 3, items: fragments })

0 commit comments

Comments
 (0)