# HG changeset patch # User Thinker K.F. Li # Date 1290489228 -28800 # Node ID bf5adf1e275e773c7d046f3a8d96c1220b58e5e0 # Parent 5d4bc2a93c0969dec8f4daf5890d2d4fd42a8439 Remove unused functions diff -r 5d4bc2a93c09 -r bf5adf1e275e src/X_supp.c --- a/src/X_supp.c Tue Nov 23 11:58:04 2010 +0800 +++ b/src/X_supp.c Tue Nov 23 13:13:48 2010 +0800 @@ -1091,52 +1091,3 @@ _x_supp_reg_IO_factory, _x_supp_reg_timer_factory, }; - -#if 0 -/*! \defgroup x_supp_nodejs_sup Export functions for supporting nodejs plugin. - * - * These functions are for internal using. - * @{ - */ -/*! \brief Exported for nodejs plugin to call _x_supp_handle_x_event. - */ -void _x_supp_handle_x_event_for_nodejs(mb_rt_t *rt) { - _x_supp_handle_x_event((X_supp_runtime_t *)rt); -} - -/*! \brief Get X connect for nodejs plugin. - */ -int _x_supp_get_x_conn_for_nodejs(mb_rt_t *rt) { - return XConnectionNumber(((X_supp_runtime_t *)rt)->display); -} - -/*! \brief Flush buffer for the X connection of a runtime object. - */ -int _x_supp_flush_x_conn_for_nodejs(mb_rt_t *rt) { - X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; -#ifdef XSHM - XSHM_update(xmb_rt); -#endif - return XFlush(xmb_rt->display); -} - -/*! \brief Handle single X event. - */ -void -_x_supp_handle_single_event(mb_rt_t *rt, void *evt) { - X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; - - handle_single_x_event(xmb_rt, (XEvent *)evt); -} - -/*! \brief Called at end of an iteration of X event loop. - */ -void -_x_supp_no_more_event(mb_rt_t *rt) { - X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; - - no_more_event(xmb_rt); -} - -/* @} */ -#endif /* 0 */