aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-01-18 21:06:36 +0100
committerThomas White <taw@bitwiz.org.uk>2014-01-18 21:06:36 +0100
commitf72616c114b82b710b3be0faa56fa4ae3f45f188 (patch)
tree4e85b484a02fb29746d5210982f230d7c690858b /src/wrap.c
parent93956372d317fc90f8751e6b319e0055507c2519 (diff)
Restore images and slide number
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 782828a..a929ad0 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -289,42 +289,6 @@ static void calc_line_geometry(struct wrap_line *line)
}
-static int get_size(const char *a, struct frame *fr, int *wp, int *hp)
-{
- char *x;
- char *ws;
- char *hs;
-
- x = index(a, 'x');
- if ( x == NULL ) goto invalid;
-
- if ( rindex(a, 'x') != x ) goto invalid;
-
- ws = strndup(a, x-a);
- hs = strdup(x+1);
-
- if ( strcmp(ws, "fit") == 0 ) {
- *wp = fr->w - (fr->pad_l+fr->pad_r);
- } else {
- *wp = strtoul(ws, NULL, 10);
- }
- if ( strcmp(ws, "fit") == 0 ) {
- *hp = fr->h - (fr->pad_t+fr->pad_b);
- } else {
- *hp = strtoul(hs, NULL, 10);
- }
-
- free(ws);
- free(hs);
-
- return 0;
-
-invalid:
- fprintf(stderr, "Invalid dimensions '%s'\n", a);
- return 1;
-}
-
-
/* Normal width of space */
static double sp_x(enum wrap_box_space s)
{