kernel: remove unused _THREAD_TIMEOUT_INIT and _THREAD_ERRNO_INIT

_THREAD_TIMEOUT_INIT() has been replaced by _nano_timeout_thread_init(),
so it can be removed.

_THREAD_ERRNO_INIT() is defined, but never used. Ben suspects that this
is a bug, and that there should be some code that calls it.

Jira: ZEP-1326
Change-Id: I476c316b80e9f34d1ed61971229ed9afafc80d8a
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-04-04 10:11:09 -04:00 committed by Anas Nashif
commit 5bb0169d02

View file

@ -337,24 +337,6 @@ extern void k_thread_abort(k_tid_t thread);
/* timeout is not in use */
#define _INACTIVE (-1)
#ifdef CONFIG_SYS_CLOCK_EXISTS
#define _THREAD_TIMEOUT_INIT(obj) \
(obj).nano_timeout = { \
.node = { {0}, {0} }, \
.thread = NULL, \
.wait_q = NULL, \
.delta_ticks_from_prev = _INACTIVE, \
},
#else
#define _THREAD_TIMEOUT_INIT(obj)
#endif
#ifdef CONFIG_ERRNO
#define _THREAD_ERRNO_INIT(obj) (obj).errno_var = 0,
#else
#define _THREAD_ERRNO_INIT(obj)
#endif
struct _static_thread_data {
union {
char *init_stack;