summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2021-01-11 18:53:50 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-11 18:53:50 -0500
commit8d63967a52f5a8c2afce0af42bf00d0bf5705811 (patch)
tree135c4dfb3a66d2c8c5820538fce95ec85f51a563 /src
parent9ed642764cf0b4585d135eb738812a43265cb2d3 (diff)
downloadlibgd-8d63967a52f5a8c2afce0af42bf00d0bf5705811.tar.gz
gd_io: trim unused Putword function
Diffstat (limited to 'src')
-rw-r--r--src/gd_io.c8
-rw-r--r--src/gd_io.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/src/gd_io.c b/src/gd_io.c
index 4cb1ade..d7e849a 100644
--- a/src/gd_io.c
+++ b/src/gd_io.c
@@ -31,14 +31,6 @@
/*
* Write out a word to the I/O context pointer
*/
-void Putword(int w, gdIOCtx *ctx)
-{
- unsigned char buf[2];
- buf[0] = w & 0xff;
- buf[1] = (w / 256) & 0xff;
- (ctx->putBuf)(ctx, (char *)buf, 2);
-}
-
void Putchar(int c, gdIOCtx *ctx)
{
(ctx->putC)(ctx, c & 0xff);
diff --git a/src/gd_io.h b/src/gd_io.h
index c7a5025..1e92885 100644
--- a/src/gd_io.h
+++ b/src/gd_io.h
@@ -74,7 +74,6 @@ typedef struct gdIOCtx {
typedef struct gdIOCtx *gdIOCtxPtr;
-void Putword(int w, gdIOCtx *ctx);
void Putchar(int c, gdIOCtx *ctx);
void gdPutC(const unsigned char c, gdIOCtx *ctx);