changeset 1046:bf5adf1e275e

Remove unused functions
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 23 Nov 2010 13:13:48 +0800
parents 5d4bc2a93c09
children f26c4b621ec0
files src/X_supp.c
diffstat 1 files changed, 0 insertions(+), 49 deletions(-) [+]
line wrap: on
line diff
--- 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 */