From 604f635c467379546ee7ea26fca672d87f405d11 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Mon, 8 Oct 2012 16:41:30 +0100 Subject: [PATCH] Cleanup of getUsedBBox() function. The function getUsedBBox() does not need to perform any operations on the DjvuPage structure, so there is no need to obtain it from Lua. --- djvu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/djvu.c b/djvu.c index 066956337..aad2ac722 100644 --- a/djvu.c +++ b/djvu.c @@ -229,13 +229,10 @@ static int getPageSize(lua_State *L) { /* unsupported so fake it */ static int getUsedBBox(lua_State *L) { - DjvuPage *page = (DjvuPage*) luaL_checkudata(L, 1, "djvupage"); - lua_pushnumber(L, (double)0.01); lua_pushnumber(L, (double)0.01); lua_pushnumber(L, (double)-0.01); lua_pushnumber(L, (double)-0.01); - return 4; }