Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lib/rbs/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,3 @@ def ascend
end
end
end

module Kernel
def Namespace(name)
warn "Kernel#Namespace() is deprecated. Use RBS::Namespace.parse instead.", category: :deprecated
RBS::Namespace.parse(name)
end
end
7 changes: 0 additions & 7 deletions lib/rbs/type_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,3 @@ def self.parse(string)
end
end
end

module Kernel
def TypeName(string)
warn "Kernel#TypeName() is deprecated. Use RBS::TypeName.parse instead.", category: :deprecated
RBS::TypeName.parse(string)
end
end
5 changes: 0 additions & 5 deletions sig/namespace.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,3 @@ module RBS
| () -> Enumerator[Namespace, void]
end
end

module Kernel
# Deprecated: Use `RBS::Namespace.parse` instead
%a{deprecated} def Namespace: (String) -> RBS::Namespace
end
5 changes: 0 additions & 5 deletions sig/typename.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,3 @@ module RBS
def self.parse: (String name) -> RBS::TypeName
end
end

module Kernel
# Deprecated: Use `RBS::TypeName.parse` instead
%a{deprecated: Use `RBS::TypeName.parse` instead} def TypeName: (String name) -> RBS::TypeName
end
Loading