diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-04-06 13:17:40 +0300 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-04-08 00:49:39 +0300 |
commit | a4c3161f498b01b231283e1c78600561921e5892 (patch) | |
tree | 875d47bd4c6e7001066d16ee33444b8f97cca6b3 | |
parent | 0718919dd683ac8cc80483dfed0a06358eaadf12 (diff) | |
download | pry-a4c3161f498b01b231283e1c78600561921e5892.tar.gz |
block_command: delete backwards compatibility code
This has been "backwards compatible" for 8 years or so, so it's time to drop it
to reduce complexity of the codebase. I am not even sure what this is about and
it's likely not relevant.
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | lib/pry/block_command.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a443510e..e7c238ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,8 @@ ([#2001](https://github.com/pry/pry/pull/2001)) * Deleted `Pry::Command#disabled_commands` ([#2001](https://github.com/pry/pry/pull/2001)) +* Deleted `Pry::BlockCommand#opts` (use `#context` instead) + ([#2003](https://github.com/pry/pry/pull/2003)) #### Bug fixes diff --git a/lib/pry/block_command.rb b/lib/pry/block_command.rb index 7491fb06..756984e8 100644 --- a/lib/pry/block_command.rb +++ b/lib/pry/block_command.rb @@ -6,9 +6,6 @@ class Pry # # Create subclasses using {Pry::CommandSet#command}. class BlockCommand < Command - # backwards compatibility - alias opts context - # Call the block that was registered with this command. # @param [Array<String>] args The arguments passed # @return [Object] The return value of the block |