Skip to content

Commit 940d1b9

Browse files
committed
Remove dead code.
1 parent d8212aa commit 940d1b9

3 files changed

Lines changed: 1 addition & 177 deletions

File tree

ext/libxml/libxml.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99

1010
VALUE mLibXML;
1111

12-
static void rxml_init_memory(void)
13-
{
14-
/* Disable for now - broke attributes.
15-
xmlGcMemSetup(
16-
(xmlFreeFunc)ruby_xfree,
17-
(xmlMallocFunc)ruby_xmalloc,
18-
(xmlMallocFunc)ruby_xmalloc,
19-
(xmlReallocFunc)ruby_xrealloc,
20-
(xmlStrdupFunc)ruby_strdup
21-
);*/
22-
}
23-
2412
void Init_libxml_ruby(void)
2513
{
2614
/* The libxml gem provides Ruby language bindings for GNOME's Libxml2
@@ -40,12 +28,11 @@ void Init_libxml_ruby(void)
4028
* copyright and distribution information.
4129
*/
4230

43-
// Seutp for threading. http://xmlsoft.org/threads.html
31+
// Setup for threading. http://xmlsoft.org/threads.html
4432
xmlInitParser();
4533

4634
mLibXML = rb_define_module("LibXML");
4735

48-
rxml_init_memory();
4936
rxml_init_registry();
5037
rxml_init_xml();
5138
rxml_init_io();

ext/libxml/ruby_xml_cbg.c

Lines changed: 0 additions & 85 deletions
This file was deleted.

lib/libxml/hpricot.rb

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)