Keep (deprecated) SGTime::update method for a while
allowing dependent projects to adapt.
This commit is contained in:
@@ -184,6 +184,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
|
||||
# define SG_UNIX
|
||||
#endif
|
||||
|
||||
#if defined( __GNUC__ )
|
||||
# define DEPRECATED __attribute__ ((deprecated))
|
||||
#else
|
||||
# define DEPRECATED
|
||||
#endif
|
||||
|
||||
//
|
||||
// No user modifiable definitions beyond here.
|
||||
//
|
||||
|
||||
@@ -182,6 +182,12 @@ static double sidereal_course( time_t cur_time, const struct tm *gmt, double lng
|
||||
return lstTmp;
|
||||
}
|
||||
|
||||
/** Deprecated method. To be removed after the next release... */
|
||||
void SGTime::update( double lon_rad, double lat_rad, time_t ct, long int warp )
|
||||
{
|
||||
const SGGeod& location = SGGeod::fromRad(lon_rad, lat_rad);
|
||||
update(location, ct, warp);
|
||||
}
|
||||
|
||||
// Update the time related variables
|
||||
void SGTime::update( const SGGeod& location, time_t ct, long int warp )
|
||||
|
||||
@@ -148,6 +148,9 @@ public:
|
||||
* allows us to advance or rewind "time" if we choose to. */
|
||||
void update( const SGGeod& location, time_t ct, long int warp );
|
||||
|
||||
/** Deprecated method. To be removed after the next release... */
|
||||
void update( double lon_rad, double lat_rad, time_t ct, long int warp ) DEPRECATED;
|
||||
|
||||
/**
|
||||
* Given lon/lat, update timezone information and local_offset
|
||||
* The updateLocal() method is intended to be called less
|
||||
|
||||
Reference in New Issue
Block a user