We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f649c1e commit 682d7b2Copy full SHA for 682d7b2
1 file changed
ext/libxml/ruby_xml_schema_type.c
@@ -229,13 +229,6 @@ static VALUE rxml_schema_type_attributes(VALUE self)
229
230
void rxml_init_schema_type(void)
231
{
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
-
239
cXMLSchemaType = rb_define_class_under(cXMLSchema, "Type", rb_cObject);
240
rb_undef_alloc_func(cXMLSchemaType);
241
0 commit comments