Commit 05d59c2554fe9c4adca1a990d7971623ef9229a0

Authored by perry.werneck@gmail.com
1 parent cee4a54f
Exists in master

Retirando funcoes sem uso

Showing 1 changed file with 5 additions and 43 deletions   Show diff stats
latest/src/lib/screen.c
@@ -128,12 +128,6 @@ int screen_init(H3270 *session) @@ -128,12 +128,6 @@ int screen_init(H3270 *session)
128 /* Initialize the console. */ 128 /* Initialize the console. */
129 if(callbacks) 129 if(callbacks)
130 { 130 {
131 - if(callbacks->init())  
132 - {  
133 - popup_an_error("Can't initialize terminal.");  
134 - return -1;  
135 - }  
136 -  
137 /* Init default callbacks */ 131 /* Init default callbacks */
138 if(callbacks->move_cursor) 132 if(callbacks->move_cursor)
139 session->update_cursor = callbacks->move_cursor; 133 session->update_cursor = callbacks->move_cursor;
@@ -144,6 +138,11 @@ int screen_init(H3270 *session) @@ -144,6 +138,11 @@ int screen_init(H3270 *session)
144 if(callbacks->set_viewsize) 138 if(callbacks->set_viewsize)
145 session->configure = callbacks->set_viewsize; 139 session->configure = callbacks->set_viewsize;
146 140
  141 + if(callbacks->init())
  142 + {
  143 + popup_an_error("Can't initialize terminal.");
  144 + return -1;
  145 + }
147 } 146 }
148 147
149 /* Set up callbacks for state changes. */ 148 /* Set up callbacks for state changes. */
@@ -693,42 +692,12 @@ void status_untiming(H3270 *session) @@ -693,42 +692,12 @@ void status_untiming(H3270 *session)
693 callbacks->show_timer(-1); 692 callbacks->show_timer(-1);
694 } 693 }
695 694
696 -/*  
697 -void Redraw_action(Widget w unused, XEvent *event unused, String *params unused, Cardinal *num_params unused)  
698 -{  
699 - if(callbacks && callbacks->redraw)  
700 - callbacks->redraw();  
701 - else  
702 - screen_disp(&h3270);  
703 -}  
704 -*/  
705 -  
706 void ring_bell(void) 695 void ring_bell(void)
707 { 696 {
708 if(callbacks && callbacks->ring_bell) 697 if(callbacks && callbacks->ring_bell)
709 callbacks->ring_bell(); 698 callbacks->ring_bell();
710 } 699 }
711 700
712 -/*  
713 -void screen_flip(void)  
714 -{  
715 - flipped = !flipped;  
716 - screen_disp(&h3270);  
717 -}  
718 -*/  
719 -  
720 -/*  
721 -void  
722 -screen_132(void)  
723 -{  
724 -}  
725 -  
726 -void  
727 -screen_80(void)  
728 -{  
729 -}  
730 -*/  
731 -  
732 /* Set the window title. */ 701 /* Set the window title. */
733 void 702 void
734 screen_title(char *text) 703 screen_title(char *text)
@@ -766,12 +735,6 @@ int query_counter(COUNTER_ID id) @@ -766,12 +735,6 @@ int query_counter(COUNTER_ID id)
766 return lib3270_event_counter[id]; 735 return lib3270_event_counter[id];
767 } 736 }
768 737
769 -/*  
770 -void screen_changed(H3270 *session, int bstart, int bend)  
771 -{  
772 -}  
773 -*/  
774 -  
775 int Register3270ScreenCallbacks(const struct lib3270_screen_callbacks *cbk) 738 int Register3270ScreenCallbacks(const struct lib3270_screen_callbacks *cbk)
776 { 739 {
777 if(!cbk) 740 if(!cbk)
@@ -830,7 +793,6 @@ LIB3270_EXPORT void update_toggle_actions(void) @@ -830,7 +793,6 @@ LIB3270_EXPORT void update_toggle_actions(void)
830 callbacks->toggle_changed(f,appres.toggle[f].value,TT_UPDATE,toggle_names[f]); 793 callbacks->toggle_changed(f,appres.toggle[f].value,TT_UPDATE,toggle_names[f]);
831 } 794 }
832 } 795 }
833 -  
834 #endif 796 #endif
835 797
836 void Warning(const char *fmt, ...) 798 void Warning(const char *fmt, ...)