shithub: tinyrend

Download patch

ref: 9afe489f2612d54d4ecf21cf426f908d7140992a
parent: b34446e7025a15bd5b74fd5f88bb952028cc8a4a
author: rodri <rgl@antares-labs.eu>
date: Wed Dec 27 07:58:20 EST 2023

got rid of unused procedures.

--- a/fns.h
+++ b/fns.h
@@ -25,8 +25,6 @@
 double fmin(double, double);
 double fmax(double, double);
 void swap(int*, int*);
-void swappt2(Point2*, Point2*);
-void swappt3(Point3*, Point3*);
 void memsetd(double*, double, usize);
 Memimage *readtga(char*);
 Memimage *rgb(ulong);
--- a/util.c
+++ b/util.c
@@ -45,26 +45,6 @@
 }
 
 void
-swappt2(Point2 *a, Point2 *b)
-{
-	Point2 t;
-
-	t = *a;
-	*a = *b;
-	*b = t;
-}
-
-void
-swappt3(Point3 *a, Point3 *b)
-{
-	Point3 t;
-
-	t = *a;
-	*a = *b;
-	*b = t;
-}
-
-void
 memsetd(double *p, double v, usize len)
 {
 	double *dp;