OS.h: Remove set_timezone function from header, place behind _BEOS_R5_COMPATIBLE_.

Long ago deprecated, not used in the tree.
This commit is contained in:
Augustin Cavalier
2022-04-25 17:25:55 -04:00
parent d39b5bfd0c
commit 8af7b72d8d
2 changed files with 10 additions and 15 deletions
-3
View File
@@ -386,9 +386,6 @@ extern bigtime_t system_time(void);
extern nanotime_t system_time_nsecs(void);
/* time since booting in nanoseconds */
/* deprecated (is no-op) */
extern status_t set_timezone(const char *timezone);
/* Alarm */
enum {
+10 -12
View File
@@ -66,18 +66,6 @@ set_real_time_clock(unsigned long secs)
}
status_t
set_timezone(const char* /*timezone*/)
{
/* There's nothing we can do here, since we no longer support named
* timezones.
*
* TODO: should we keep this around for compatibility or get rid of it?
*/
return ENOSYS;
}
bigtime_t
set_alarm(bigtime_t when, uint32 mode)
{
@@ -112,3 +100,13 @@ set_alarm(bigtime_t when, uint32 mode)
return oldInfo.remaining_time != B_INFINITE_TIMEOUT
? oldInfo.remaining_time : 0;
}
#ifdef _BEOS_R5_COMPATIBLE_
extern "C" status_t
set_timezone(const char* /*timezone*/)
{
// There's nothing we can do here, since we no longer support named timezones.
return ENOSYS;
}
#endif