Skip to content

Commit ea523f3

Browse files
committed
Remove unused IOResource.default_for method
This method, introduced in the 4b13f77 commit along with the IOResource class, is not utilized in either production or test code. To the best of my understanding, this discrepancy may be attributed to a copy-and-paste error. Ref: #186
1 parent 2263526 commit ea523f3

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88
- Reduce production gem size from 31K to 18K. [#165](https://github.com/jamesmartin/inline_svg/pull/165). Thanks, [@tagliala](https://github.com/tagliala)
99
- Freeze string literals. [#172](https://github.com/jamesmartin/inline_svg/pull/172). Thanks, [@tagliala](https://github.com/tagliala)
1010
- Fix thread-local variable leakage in `with_asset_finder`. [#185](https://github.com/jamesmartin/inline_svg/pull/185). Thanks, [@tagliala](https://github.com/tagliala)
11+
- Remove unused `InlineSvg::IOResource.default_for` method. [#187](https://github.com/jamesmartin/inline_svg/pull/187). Thanks, [@tagliala](https://github.com/tagliala)
1112

1213
## [1.10.0] - 2024-09-03
1314
### Added

lib/inline_svg/io_resource.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ def self.===(object)
66
object.is_a?(IO) || object.is_a?(StringIO)
77
end
88

9-
def self.default_for(object)
10-
case object
11-
when StringIO then ''
12-
when IO then 1
13-
end
14-
end
15-
169
def self.read(object)
1710
start = object.pos
1811
str = object.read

0 commit comments

Comments
 (0)