shithub: riscv

Download patch

ref: 9d1e80cbbb966c1206a27f1dabf9cb5e85709ba7
parent: dacebbb2e7c1098d7d6567317abc169f2ec327b8
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