Skip to content

Commit 682d7b2

Browse files
committed
Remove dead Float::INFINITY definition for Ruby 1.8.7 compatibility.
1 parent f649c1e commit 682d7b2

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

ext/libxml/ruby_xml_schema_type.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,6 @@ static VALUE rxml_schema_type_attributes(VALUE self)
229229

230230
void rxml_init_schema_type(void)
231231
{
232-
/* Add in infinity support for ruby 1.8.7 */
233-
#if !defined(RUBY_VM) && defined(INFINITY)
234-
ID infinityId = rb_intern("INFINITY");
235-
if (rb_const_defined(rb_cFloat, infinityId) == Qfalse)
236-
rb_define_const(rb_cFloat, "INFINITY", rb_float_new(INFINITY));
237-
#endif
238-
239232
cXMLSchemaType = rb_define_class_under(cXMLSchema, "Type", rb_cObject);
240233
rb_undef_alloc_func(cXMLSchemaType);
241234

0 commit comments

Comments
 (0)