summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-13 20:25:08 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-13 20:25:08 +0000
commite4c50bd58ada5d87f2eb8ab7b291fbd39999124f (patch)
treefc08c3f9ecd02e5112de525e7c16c3f8843e034f /render/box.c
parenta7499820ba2f84fd3764b884c4cdedc2d3b04e84 (diff)
downloadnetsurf-e4c50bd58ada5d87f2eb8ab7b291fbd39999124f.tar.gz
netsurf-e4c50bd58ada5d87f2eb8ab7b291fbd39999124f.tar.bz2
Update for new libcss API.
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/render/box.c b/render/box.c
index e955b4303..295308b5a 100644
--- a/render/box.c
+++ b/render/box.c
@@ -54,24 +54,6 @@ static bool box_nearest_text_box(struct box *box, int bx, int by,
box->type == BOX_FLOAT_RIGHT)
/**
- * Allocator
- *
- * \param ptr Pointer to reallocate, or NULL for new allocation
- * \param size Number of bytes requires
- * \param pw Allocation context
- * \return Pointer to allocated block, or NULL on failure
- */
-void *box_style_alloc(void *ptr, size_t len, void *pw)
-{
- if (len == 0) {
- free(ptr);
- return NULL;
- }
-
- return realloc(ptr, len);
-}
-
-/**
* Destructor for box nodes which own styles
*
* \param b The box being destroyed.