Skip to content

Commit 97eecc1

Browse files
authored
remove SendAndBlockLink::duplicate() (sorbet#8424)
1 parent 64525f1 commit 97eecc1

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

core/Types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,6 @@ class SendAndBlockLink {
937937

938938
SendAndBlockLink(NameRef fun, std::vector<ArgInfo::ArgFlags> &&argFlags);
939939
std::optional<int> fixedArity() const;
940-
std::shared_ptr<SendAndBlockLink> duplicate();
941940
};
942941

943942
class TypeAndOrigins final {

core/types/types.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,6 @@ TypePtr AndType::make_shared(const TypePtr &left, const TypePtr &right) {
781781
SendAndBlockLink::SendAndBlockLink(NameRef fun, vector<ArgInfo::ArgFlags> &&argFlags)
782782
: argFlags(move(argFlags)), fun(fun) {}
783783

784-
shared_ptr<SendAndBlockLink> SendAndBlockLink::duplicate() {
785-
auto copy = *this;
786-
return make_shared<SendAndBlockLink>(move(copy));
787-
}
788-
789784
optional<int> SendAndBlockLink::fixedArity() const {
790785
optional<int> arity = 0;
791786
for (auto &arg : argFlags) {

0 commit comments

Comments
 (0)