Mercurial > MadButterfly
changeset 753:cedfe4966fd6
Clear unused local variables
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 26 Aug 2010 13:35:21 +0800 |
parents | 199bac90b90a |
children | 86f2c0fbadfc |
files | include/mb_types.h nodejs/X_supp_njs.c |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/include/mb_types.h Thu Aug 26 00:16:12 2010 +0800 +++ b/include/mb_types.h Thu Aug 26 13:35:21 2010 +0800 @@ -312,6 +312,8 @@ #define coord_clear_flags(co, _flags) \ do { (co)->flags &= ~(_flags); } while(0) #define coord_get_mouse_event(coord) ((coord)->mouse_event) +#define coord_get_opacity(coord) ((coord)->opacity) +#define coord_set_opacity(coord, v) do { (coord)->opacity = v; } while(0) #define coord_get_aggr_matrix(coord) ((coord)->aggr_matrix) #define coord_get_matrix(coord) ((coord)->matrix) #define FOR_COORDS_POSTORDER(coord, cur) \
--- a/nodejs/X_supp_njs.c Thu Aug 26 00:16:12 2010 +0800 +++ b/nodejs/X_supp_njs.c Thu Aug 26 13:35:21 2010 +0800 @@ -81,11 +81,7 @@ void X_njs_MB_init_handle_connection(njs_runtime_t *rt) { void *xrt = rt->xrt; - mb_tman_t *tman; - mb_timeval_t now, tmo; - ev_tstamp tout; int fd; - int r; extern int _X_MB_get_x_conn_for_nodejs(void *rt); /*