File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed
lib/active_support/notifications Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveSupport::Notifications::Event#children ` and ` ActiveSupport::Notifications::Event#parent_of? ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated support to call the following methods without passing a deprecator:
2
6
3
7
- ` deprecate `
Original file line number Diff line number Diff line change @@ -173,23 +173,6 @@ def allocations
173
173
@allocation_count_finish - @allocation_count_start
174
174
end
175
175
176
- def children # :nodoc:
177
- ActiveSupport . deprecator . warn <<~EOM
178
- ActiveSupport::Notifications::Event#children is deprecated and will
179
- be removed in Rails 7.2.
180
- EOM
181
- [ ]
182
- end
183
-
184
- def parent_of? ( event ) # :nodoc:
185
- ActiveSupport . deprecator . warn <<~EOM
186
- ActiveSupport::Notifications::Event#parent_of? is deprecated and will
187
- be removed in Rails 7.2.
188
- EOM
189
- start = ( time - event . time ) * 1000
190
- start <= 0 && ( start + duration >= event . duration )
191
- end
192
-
193
176
# Returns the difference in milliseconds between when the execution of the
194
177
# event started and when it ended.
195
178
#
Original file line number Diff line number Diff line change @@ -207,6 +207,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
207
207
208
208
### Removals
209
209
210
+ * Remove deprecated ` ActiveSupport::Notifications::Event#children ` and ` ActiveSupport::Notifications::Event#parent_of? ` .
211
+
210
212
* Remove deprecated support to call the following methods without passing a deprecator:
211
213
212
214
- ` deprecate `
You can’t perform that action at this time.
0 commit comments