Skip to content

Commit 143edbd

Browse files
committed
Remove deprecate constants under Struct
1 parent ca41f18 commit 143edbd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/etc/etc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,6 @@ Init_etc(void)
11981198
*/
11991199
sPasswd = rb_define_class_under(mEtc, "Passwd", rb_cStruct);
12001200
#endif
1201-
rb_define_const(rb_cStruct, "Passwd", sPasswd); /* deprecated name */
1202-
rb_deprecate_constant(rb_cStruct, "Passwd");
12031201
rb_extend_object(sPasswd, rb_mEnumerable);
12041202
rb_define_singleton_method(sPasswd, "each", etc_each_passwd, 0);
12051203

@@ -1232,8 +1230,6 @@ Init_etc(void)
12321230
*/
12331231
sGroup = rb_define_class_under(mEtc, "Group", rb_cStruct);
12341232
#endif
1235-
rb_define_const(rb_cStruct, "Group", sGroup); /* deprecated name */
1236-
rb_deprecate_constant(rb_cStruct, "Group");
12371233
rb_extend_object(sGroup, rb_mEnumerable);
12381234
rb_define_singleton_method(sGroup, "each", etc_each_group, 0);
12391235
#endif

0 commit comments

Comments
 (0)