From e1d92f81e9468f84b4c0a1d1e91a1da50554418f Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 11 Nov 2005 14:46:15 +0000 Subject: [PATCH] Deprecate some non GPL compatible code in favor of our own routines. --- src/Time/Makefile.am | 1 - src/Time/light.cxx | 2 +- src/Time/sunpos.cxx | 364 ----------------------------------------- src/Time/sunpos.hxx | 33 ---- src/Time/sunsolver.cxx | 52 +++++- src/Time/sunsolver.hxx | 7 + src/Time/tmp.cxx | 127 +++++++++++++- src/Time/tmp.hxx | 2 + 8 files changed, 186 insertions(+), 402 deletions(-) delete mode 100644 src/Time/sunpos.cxx delete mode 100644 src/Time/sunpos.hxx diff --git a/src/Time/Makefile.am b/src/Time/Makefile.am index 30c9a8b39..98f634176 100644 --- a/src/Time/Makefile.am +++ b/src/Time/Makefile.am @@ -3,7 +3,6 @@ noinst_LIBRARIES = libTime.a libTime_a_SOURCES = \ fg_timer.cxx fg_timer.hxx \ light.cxx light.hxx \ - sunpos.cxx sunpos.hxx \ sunsolver.cxx sunsolver.hxx \ tmp.cxx tmp.hxx diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 5eb4f2c17..46e607b16 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -59,7 +59,7 @@ #include
#include "light.hxx" -#include "sunpos.hxx" +#include "tmp.hxx" // Constructor diff --git a/src/Time/sunpos.cxx b/src/Time/sunpos.cxx deleted file mode 100644 index f9b87accb..000000000 --- a/src/Time/sunpos.cxx +++ /dev/null @@ -1,364 +0,0 @@ -// sunpos.cxx (adapted from XEarth) -// kirk johnson -// july 1993 -// -// code for calculating the position on the earth's surface for which -// the sun is directly overhead (adapted from _practical astronomy -// with your calculator, third edition_, peter duffett-smith, -// cambridge university press, 1988.) -// -// Copyright (C) 1989, 1990, 1993, 1994, 1995 Kirk Lauritz Johnson -// -// Parts of the source code (as marked) are: -// Copyright (C) 1989, 1990, 1991 by Jim Frost -// Copyright (C) 1992 by Jamie Zawinski -// -// Permission to use, copy, modify and freely distribute xearth for -// non-commercial and not-for-profit purposes is hereby granted -// without fee, provided that both the above copyright notice and this -// permission notice appear in all copies and in supporting -// documentation. -// -// The author makes no representations about the suitability of this -// software for any purpose. It is provided "as is" without express or -// implied warranty. -// -// THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, -// INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, -// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT -// OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -// -// $Id$ - - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include - -#ifdef SG_HAVE_STD_INCLUDES -# include -# include -# include -# ifdef macintosh - SG_USING_STD(time_t); -# endif -#else -# include -# include -# include -#endif - -#include -#include -#include -#include -#include -#include -#include -#include - -#include
-#include
-#include -#include