class Protocol::HTTP2::Dependency
def remove_child(dependency)
def remove_child(dependency) @children&.delete(dependency.id) if @ordered_children # Don't do a linear search here, it can be slow. Instead, the child's parent will be set to `nil`, and we check this in {#consume_window} using `delete_if`. # @ordered_children.delete(dependency) @total_weight -= dependency.weight end end