summaryrefslogtreecommitdiff
path: root/src/cairo-mono-scan-converter.c
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2023-01-26 13:21:41 +0200
committerKhaled Hosny <khaled@aliftype.com>2023-02-06 11:42:00 +0200
commita74ef93d8221b37af60290abfc4f15214111d3cd (patch)
tree35284fadc0da3a4ee400ca45abfc874e3e196fe0 /src/cairo-mono-scan-converter.c
parent23e2718bd72ad5cb43abb853ef46ac0a1427f121 (diff)
downloadcairo-a74ef93d8221b37af60290abfc4f15214111d3cd.tar.gz
Fix -Wunused-function warnings
Diffstat (limited to 'src/cairo-mono-scan-converter.c')
-rw-r--r--src/cairo-mono-scan-converter.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/cairo-mono-scan-converter.c b/src/cairo-mono-scan-converter.c
index 69168bd5d..32ddfcc51 100644
--- a/src/cairo-mono-scan-converter.c
+++ b/src/cairo-mono-scan-converter.c
@@ -85,21 +85,6 @@ struct mono_scan_converter {
#define I(x) _cairo_fixed_integer_round_down(x)
-/* Compute the floored division a/b. Assumes / and % perform symmetric
- * division. */
-inline static struct quorem
-floored_divrem(int a, int b)
-{
- struct quorem qr;
- qr.quo = a/b;
- qr.rem = a%b;
- if ((a^b)<0 && qr.rem) {
- qr.quo -= 1;
- qr.rem += b;
- }
- return qr;
-}
-
/* Compute the floored division (x*a)/b. Assumes / and % perform symmetric
* division. */
static struct quorem
@@ -377,15 +362,6 @@ row (struct mono_scan_converter *c, unsigned int mask)
}
}
-inline static void dec (struct edge *e, int h)
-{
- e->height_left -= h;
- if (e->height_left == 0) {
- e->prev->next = e->next;
- e->next->prev = e->prev;
- }
-}
-
static cairo_status_t
_mono_scan_converter_init(struct mono_scan_converter *c,
int xmin, int ymin,