From 6f699c05b042f35a0cdde39046668eca93809aa7 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 30 Nov 2011 22:36:52 +0000 Subject: Removed unused declarations. svn path=/trunk/netsurf/; revision=13209 --- atari/browser_win.c | 16 ---------------- atari/global_evnt.h | 2 -- atari/toolbar.h | 11 ++--------- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/atari/browser_win.c b/atari/browser_win.c index 01775c031..cb409395f 100755 --- a/atari/browser_win.c +++ b/atari/browser_win.c @@ -75,8 +75,6 @@ void __CDECL std_mvd( WINDOW * win, short buff[8], void * ); /* -------------------------------------------------------------------------- */ /* Static module methods follow here: */ /* -------------------------------------------------------------------------- */ -static void evnt_toolbar_click(WINDOW * win, short buf[8], void * data); -static void __CDECL evnt_window_redraw( WINDOW *win, short buff[8], void *data ); static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void *data ); static void __CDECL evnt_window_newtop( WINDOW *win, short buff[8], void *data ); void __CDECL evnt_window_resize( WINDOW *win, short buff[8], void * data ); @@ -85,8 +83,6 @@ static void __CDECL evnt_window_rt_resize( WINDOW *win, short buff[8], void * da static void __CDECL evnt_window_close( WINDOW *win, short buff[8], void *data ); static void __CDECL evnt_window_dd( WINDOW *win, short wbuff[8], void * data ) ; static void __CDECL evnt_window_destroy( WINDOW *win, short buff[8], void *data ); -static void __CDECL evnt_window_keybd(WINDOW *win, short buff[8], void *data ); -static void __CDECL evnt_window_mbutton(WINDOW *win, short buff[8], void *data ); static void __CDECL evnt_window_m1( WINDOW * win, short buff[8], void * data); static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data); static void __CDECL evnt_window_arrowed( WINDOW *win, short buff[8], void *data ); @@ -642,16 +638,6 @@ static void __CDECL evnt_window_newtop( WINDOW *win, short buff[8], void *data ) assert( input_window != NULL ); } -static void __CDECL evnt_window_shaded( WINDOW *win, short buff[8], void *data ) -{ - if(buff[0] == WM_SHADED){ - LOG(("WM_SHADED, vis: %d, state: %d", GEMWIN_VISIBLE(win), win->status )); - } - if(buff[0] == WM_UNSHADED){ - - } -} - static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data) { int dx = buff[4]; @@ -677,8 +663,6 @@ static void __CDECL evnt_window_slider( WINDOW * win, short buff[8], void * data browser_scroll( gw, WA_RTPAGE, abs(dx), false ); else if( dx < 0 ) browser_scroll( gw, WA_LFPAGE, abs(dx), false ); - - } diff --git a/atari/global_evnt.h b/atari/global_evnt.h index 6325271e3..c94105a1b 100755 --- a/atari/global_evnt.h +++ b/atari/global_evnt.h @@ -56,8 +56,6 @@ struct s_menu_item_evnt { */ -void snd_redraw(short x, short y, short w, short h); -void snd_win_redraw(WINDOW * win, short x, short y, short w, short h); /* Call this after each call to evnt_multi, to check for states that evnt_multi doesn't: */ void global_track_mouse_state( LGRECT * bwrect, bool within, short, short, short, short ); void bind_global_events( void ); diff --git a/atari/toolbar.h b/atari/toolbar.h index efd8e33ce..ba967f91e 100755 --- a/atari/toolbar.h +++ b/atari/toolbar.h @@ -73,15 +73,10 @@ struct s_toolbar struct s_tb_button * buttons; int btcnt; }; - + +/* interface to the toolbar */ CMP_TOOLBAR tb_create( struct gui_window * gw ); void tb_destroy( CMP_TOOLBAR tb ); - - -static void __CDECL evnt_toolbar_redraw( COMPONENT *c, long buff[8], void *data ); -//static void __CDECL evnt_toolbar_mbutton( COMPONENT *c, long buff[8], void *data ); -static void __CDECL evnt_toolbar_resize( COMPONENT *c, long buff[8], void *data ); - /* recalculate size/position of nested controls within the toolbar: */ void tb_adjust_size( struct gui_window * gw ); /* report click to toolbar, relative coords : */ @@ -91,7 +86,6 @@ void tb_reload_click( struct gui_window * gw ); void tb_forward_click( struct gui_window * gw ); void tb_home_click( struct gui_window * gw ); void tb_stop_click( struct gui_window * gw ); - /* enable / disable buttons etc. */ void tb_update_buttons( struct gui_window * gw ); /* handles clicks on url widget: */ @@ -102,7 +96,6 @@ bool tb_url_input( struct gui_window * gw, short keycode ); void tb_url_set( struct gui_window * gw, char * text ); /* perform redraw of invalidated url textinput areas: */ void tb_url_redraw( struct gui_window * gw ); - struct gui_window * tb_gui_window( CMP_TOOLBAR tb ); #endif -- cgit v1.2.3