summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-09-14 12:05:34 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-09-14 16:31:00 +0200
commita06dae7b35cfc24f722ea5b4e1b11592d5cb8775 (patch)
tree4b10a5603f6f37f27a0139f4c56e1583225a5f74
parent2d3a7fefffb26949c0103429c5eb151e93c0ecef (diff)
downloadmupdf-a06dae7b35cfc24f722ea5b4e1b11592d5cb8775.tar.xz
Remove unused functions.
-rw-r--r--source/fitz/draw-affine.c5
-rw-r--r--source/fitz/unzip.c5
-rw-r--r--source/xps/xps-gradient.c7
3 files changed, 0 insertions, 17 deletions
diff --git a/source/fitz/draw-affine.c b/source/fitz/draw-affine.c
index 1c6c26d1..d56eea96 100644
--- a/source/fitz/draw-affine.c
+++ b/source/fitz/draw-affine.c
@@ -3,11 +3,6 @@
typedef unsigned char byte;
-static inline float roundup(float x)
-{
- return (x < 0) ? floorf(x) : ceilf(x);
-}
-
static inline int lerp(int a, int b, int t)
{
return a + (((b - a) * t) >> 16);
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c
index 355da552..b14705ba 100644
--- a/source/fitz/unzip.c
+++ b/source/fitz/unzip.c
@@ -31,11 +31,6 @@ struct fz_archive_s
struct zip_entry *table;
};
-static inline int zip_isdigit(int c)
-{
- return c >= '0' && c <= '9';
-}
-
static inline int zip_toupper(int c)
{
if (c >= 'a' && c <= 'z')
diff --git a/source/xps/xps-gradient.c b/source/xps/xps-gradient.c
index f3a9f8e8..234d6d42 100644
--- a/source/xps/xps-gradient.c
+++ b/source/xps/xps-gradient.c
@@ -286,13 +286,6 @@ xps_draw_one_linear_gradient(fz_context *ctx, xps_document *doc, const fz_matrix
* reach a reasonable limit for infinite cases.
*/
-static inline float point_inside_circle(float px, float py, float x, float y, float r)
-{
- float dx = px - x;
- float dy = py - y;
- return dx * dx + dy * dy <= r * r;
-}
-
static void
xps_draw_radial_gradient(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, const fz_rect *area,
struct stop *stops, int count,