[html-table] fix never-used function and deprecate

This commit is contained in:
Christopher Lam 2019-06-28 10:59:50 +08:00
parent a23d72dec2
commit cc4944e536

View File

@ -569,11 +569,13 @@
(cons
(cons (cons current-new current-existing) (car rest-result))
(cdr rest-result)))))
(issue-deprecation-warning "gnc:html-table-prepend-column! is unused.")
(let* ((existing-data (reverse (gnc:html-table-data table)))
(existing-length (length existing-data))
(newcol-length (length newcol)))
(if (<= newcol-length existing-length)
(gnc:html-table-set-data!
(gnc:html-table-set-data!
table
(reverse (car (prepend-to-element
newcol
existing-data