summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r--libass/ass_utils.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c
index 11864b2..7692c9a 100644
--- a/libass/ass_utils.c
+++ b/libass/ass_utils.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
-#include <limits.h>
#include <inttypes.h>
#include "ass_library.h"
@@ -157,44 +156,6 @@ void *ass_try_realloc_array(void *ptr, size_t nmemb, size_t size)
}
}
-void skip_spaces(char **str)
-{
- char *p = *str;
- while ((*p == ' ') || (*p == '\t'))
- ++p;
- *str = p;
-}
-
-void rskip_spaces(char **str, char *limit)
-{
- char *p = *str;
- while ((p > limit) && ((p[-1] == ' ') || (p[-1] == '\t')))
- --p;
- *str = p;
-}
-
-/**
- * \brief converts numpad-style align to align.
- */
-int numpad2align(int val)
-{
- if (val < -INT_MAX)
- // Pick an alignment somewhat arbitrarily. VSFilter handles
- // INT32_MIN as a mix of 1, 2 and 3, so prefer one of those values.
- val = 2;
- else if (val < 0)
- val = -val;
-
- int res = ((val - 1) % 3) + 1; // horizontal alignment
- if (val <= 3)
- res |= VALIGN_SUB;
- else if (val <= 6)
- res |= VALIGN_CENTER;
- else
- res |= VALIGN_TOP;
- return res;
-}
-
void ass_msg(ASS_Library *priv, int lvl, const char *fmt, ...)
{
va_list va;