Skip to content

Commit

Permalink
fix(deps): 'xmlMemDisplay' is deprecated
Browse files Browse the repository at this point in the history
DEPRECATED: This feature was removed.

Signed-off-by: Julian Strobl <[email protected]>
  • Loading branch information
jmastr committed Jan 4, 2025
1 parent 22cb7f5 commit d525c26
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion gokogiri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@ func CheckXmlMemoryLeaks(t *testing.T) {

if !help.LibxmlCheckMemoryLeak() {
t.Errorf("Memory leaks: %d!!!", help.LibxmlGetMemoryAllocation())
help.LibxmlReportMemoryLeak()
}
}
6 changes: 0 additions & 6 deletions help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ package help
#include <libxml/HTMLtree.h>
#include <libxml/HTMLparser.h>
#include <libxml/xmlsave.h>
void printMemoryLeak() { xmlMemDisplay(stdout); }
*/
import "C"

Expand Down Expand Up @@ -68,7 +66,3 @@ func LibxmlGetMemoryAllocation() int {
func LibxmlCheckMemoryLeak() bool {
return (C.xmlMemBlocks() == 0)
}

func LibxmlReportMemoryLeak() {
C.printMemoryLeak()
}
1 change: 0 additions & 1 deletion help/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ func CheckXmlMemoryLeaks(t *testing.T) {

if !LibxmlCheckMemoryLeak() {
t.Errorf("Memory leaks: %d!!!", LibxmlGetMemoryAllocation())
LibxmlReportMemoryLeak()
}
}
1 change: 0 additions & 1 deletion html/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,5 @@ func CheckXmlMemoryLeaks(t *testing.T) {
if !help.LibxmlCheckMemoryLeak() {
println("Found memory leaks!")
t.Errorf("Memory leaks: %d!!!", help.LibxmlGetMemoryAllocation())
help.LibxmlReportMemoryLeak()
}
}
1 change: 0 additions & 1 deletion xml/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func CheckXmlMemoryLeaks(t *testing.T) {

if !help.LibxmlCheckMemoryLeak() {
t.Errorf("Memory leaks: %d!!!", help.LibxmlGetMemoryAllocation())
help.LibxmlReportMemoryLeak()
}
}

Expand Down
1 change: 0 additions & 1 deletion xpath/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ func CheckXmlMemoryLeaks(t *testing.T) {

if !help.LibxmlCheckMemoryLeak() {
t.Errorf("Memory leaks: %d!!!", help.LibxmlGetMemoryAllocation())
help.LibxmlReportMemoryLeak()
}
}

0 comments on commit d525c26

Please sign in to comment.