summaryrefslogtreecommitdiff
path: root/vertex.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-05 10:41:11 +0000
committerrodri <rgl@antares-labs.eu>2024-08-05 10:41:11 +0000
commit05ae0d42a944f6c7d940a5e58eb90b619dadbfdb (patch)
treef9b7e7ff1c189ded71d965bdc3eccf27ef26e462 /vertex.c
parentc06379ee3aa51d3adf456c8d126feebd1da9de70 (diff)
downloadlibgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.gz
libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.bz2
libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.zip
fix a double-free. add a generic value-swapping macro.
Diffstat (limited to 'vertex.c')
-rw-r--r--vertex.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/vertex.c b/vertex.c
index 92c6b0a..970bbbc 100644
--- a/vertex.c
+++ b/vertex.c
@@ -43,16 +43,6 @@ dupvertex(Vertex *v)
return nv;
}
-void
-swapvertex(Vertex *a, Vertex *b)
-{
- Vertex t;
-
- t = *a;
- *a = *b;
- *b = t;
-}
-
/*
* linear attribute interpolation
*/