Skip to content

Commit

Permalink
Merge pull request #1805 from pocke/Remove_deprecated_API_since_RBS_v1
Browse files Browse the repository at this point in the history
Remove deprecated API since RBS v1
  • Loading branch information
soutaro committed Apr 22, 2024
2 parents 9573244 + cc5d625 commit e798a09
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 44 deletions.
14 changes: 0 additions & 14 deletions lib/rbs/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ def initialize(location, error_message, token_type)

super "#{Location.to_string location}: Syntax error: #{error_message}, token=`#{location.source}` (#{token_type})"
end

def error_value
RBS.print_warning {
"#{self.class.name}#error_value is deprecated and will be deleted in RBS 2.0. Consider using `location.source` instead."
}
location.source
end

def token_str
RBS.print_warning {
"#{self.class.name}#token_str is deprecated and will be deleted in RBS 2.0. Consider using `token_type` instead."
}
token_type
end
end

class InvalidTypeApplicationError < DefinitionError
Expand Down
5 changes: 0 additions & 5 deletions lib/rbs/parser_aux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ def self.buffer(source)
end
end

autoload :SyntaxError, "rbs/parser_compat/syntax_error"
autoload :SemanticsError, "rbs/parser_compat/semantics_error"
autoload :LexerError, "rbs/parser_compat/lexer_error"
autoload :LocatedValue, "rbs/parser_compat/located_value"

KEYWORDS = %w(
bool
bot
Expand Down
6 changes: 0 additions & 6 deletions lib/rbs/parser_compat/lexer_error.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/rbs/parser_compat/located_value.rb

This file was deleted.

6 changes: 0 additions & 6 deletions lib/rbs/parser_compat/semantics_error.rb

This file was deleted.

6 changes: 0 additions & 6 deletions lib/rbs/parser_compat/syntax_error.rb

This file was deleted.

0 comments on commit e798a09

Please sign in to comment.