git: 9front

Download patch

ref: 94c2bcc83eb84c4cba844aae6809e40085b10b96
parent: e1edddf77c5f2ce3a2533b3de0e16bbe4240a0a7
author: BurnZeZ <brz-9dev@feline.systems>
date: Tue Mar 1 14:36:24 EST 2016

map/libmap: remove unused function/definitions

--- a/sys/src/cmd/map/libmap/zcoord.c
+++ b/sys/src/cmd/map/libmap/zcoord.c
@@ -123,12 +123,6 @@
 		g->wlon.l += 2*PI;
 }
 
-double
-tan(double x)
-{
-	return(sin(x)/cos(x));
-}
-
 void
 printp(struct place *g)
 {
--- a/sys/src/cmd/map/map.h
+++ b/sys/src/cmd/map/map.h
@@ -7,8 +7,6 @@
 
 #define TWOPI (2*PI)
 #define RAD (PI/180)
-double	hypot(double, double);	/* sqrt(a*a+b*b) */
-double	tan(double);		/* not in K&R library */
 
 #define ECC .08227185422	/* eccentricity of earth */
 #define EC2 .006768657997
--