What is Resource#declared_key?

So I’ve been digging through the notifications code and found a weird pattern: https://github.com/chef/chef/blob/master/lib/chef/run_context.rb#L178-L182

That “if is resource use .name else use .declared_key” is repeated in a bunch of notification methods, and as far as I can tell it is pure cruft. Does anyone remember what that was supposed to be for? declared_key itself is a method on Resource, so I’m pretty sure the else branch can’t ever succeed. Nothing outside of the the notification code seems to use declared_key, so I’m pretty sure we can just delete all of this. If no one has a good reason for this to exist I’ll make a PR to nuke it.

–Noah