Skip to content

Deprecate SafeBuffer#clone_empty - #48264

Merged
guilleiguaran merged 1 commit into
rails:mainfrom
flavorjones:flavorjones-remove-safebuffer-clone-empty
May 21, 2023
Merged

guilleiguaran merged 1 commit into
rails:mainfrom
flavorjones:flavorjones-remove-safebuffer-clone-empty

Conversation

@flavorjones

@flavorjones flavorjones commented May 20, 2023 •

Copy link
Copy Markdown
Member

Motivation / Background

SafeBuffer#clone_empty is unused within the Rails codebase. The last caller was removed by 479c7ca in 2014 (Rails 4.2.0).

Additional information

A search on github suggests that this method isn't called often by any public code written or updated in the last 11 years.

Is this a method we want to continue to support?

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

This method is unused within the Rails codebase, the last caller was
removed by 479c7ca in 2014 (Rails 4.2.0).
@guilleiguaran
guilleiguaran merged commit 5deec01 into rails:main May 21, 2023
@flavorjones
flavorjones deleted the flavorjones-remove-safebuffer-clone-empty branch May 21, 2023 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants