Skip to content

Commit 3d44cbb

Browse files
committed
Remove rb_clone_setup and rb_dup_setup deprecated for 4 years
1 parent 87d2da7 commit 3d44cbb

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

include/ruby/internal/newobj.h

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -109,42 +109,4 @@ void rb_singleton_class_attached(VALUE klass, VALUE obj);
109109
void rb_copy_generic_ivar(VALUE clone, VALUE obj);
110110
RBIMPL_SYMBOL_EXPORT_END()
111111

112-
RBIMPL_ATTR_DEPRECATED(("This is no longer how Object#clone works."))
113-
/**
114-
* @deprecated Not sure exactly when but at some time, the implementation of
115-
* `Object#clone` stopped using this function. It remained
116-
* untouched for a while, and then @shyouhei realised that they
117-
* are no longer doing the same thing. It seems nobody seriously
118-
* uses this function any longer. Let's just abandon it.
119-
*
120-
* @param[out] clone The destination object.
121-
* @param[in] obj The source object.
122-
*/
123-
static inline void
124-
rb_clone_setup(VALUE clone, VALUE obj)
125-
{
126-
(void)clone;
127-
(void)obj;
128-
return;
129-
}
130-
131-
RBIMPL_ATTR_DEPRECATED(("This is no longer how Object#dup works."))
132-
/**
133-
* @deprecated Not sure exactly when but at some time, the implementation of
134-
* `Object#dup` stopped using this function. It remained
135-
* untouched for a while, and then @shyouhei realised that they
136-
* are no longer the same thing. It seems nobody seriously uses
137-
* this function any longer. Let's just abandon it.
138-
*
139-
* @param[out] dup The destination object.
140-
* @param[in] obj The source object.
141-
*/
142-
static inline void
143-
rb_dup_setup(VALUE dup, VALUE obj)
144-
{
145-
(void)dup;
146-
(void)obj;
147-
return;
148-
}
149-
150112
#endif /* RBIMPL_NEWOBJ_H */

0 commit comments

Comments
 (0)