Skip to content

Commit 1b186a3

Browse files
authored
Merge pull request #2480 from ksss/drop-deprecated-method
Remove deprecated method `Kernel#Namespace`. Also remove `Kernel#TypeName`.
2 parents cc4f13d + bec9420 commit 1b186a3

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

lib/rbs/namespace.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,3 @@ def ascend
116116
end
117117
end
118118
end
119-
120-
module Kernel
121-
def Namespace(name)
122-
warn "Kernel#Namespace() is deprecated. Use RBS::Namespace.parse instead.", category: :deprecated
123-
RBS::Namespace.parse(name)
124-
end
125-
end

lib/rbs/type_name.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,3 @@ def self.parse(string)
100100
end
101101
end
102102
end
103-
104-
module Kernel
105-
def TypeName(string)
106-
warn "Kernel#TypeName() is deprecated. Use RBS::TypeName.parse instead.", category: :deprecated
107-
RBS::TypeName.parse(string)
108-
end
109-
end

sig/namespace.rbs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,3 @@ module RBS
139139
| () -> Enumerator[Namespace, void]
140140
end
141141
end
142-
143-
module Kernel
144-
# Deprecated: Use `RBS::Namespace.parse` instead
145-
%a{deprecated} def Namespace: (String) -> RBS::Namespace
146-
end

sig/typename.rbs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,3 @@ module RBS
7272
def self.parse: (String name) -> RBS::TypeName
7373
end
7474
end
75-
76-
module Kernel
77-
# Deprecated: Use `RBS::TypeName.parse` instead
78-
%a{deprecated: Use `RBS::TypeName.parse` instead} def TypeName: (String name) -> RBS::TypeName
79-
end

0 commit comments

Comments
 (0)