netsurf: remove useless documentBody

This commit is contained in:
Pierre Tachoire
2023-10-18 16:35:30 +02:00
parent 34d5f2800e
commit 0580a3ffd6

View File

@@ -669,16 +669,6 @@ pub inline fn documentCreateElement(doc: *Document, tag_name: []const u8) *Eleme
return elem.?; return elem.?;
} }
pub inline fn documentBody(doc: *Document) ?*Body {
const doc_html = @as(*DocumentHTML, @ptrCast(doc));
var body: ?*ElementHTML = undefined;
_ = documentHTMLVtable(doc_html).get_body.?(doc_html, &body);
if (body == null) {
return null;
}
return @as(*Body, @ptrCast(body.?));
}
// DocumentHTML // DocumentHTML
pub const DocumentHTML = c.dom_html_document; pub const DocumentHTML = c.dom_html_document;