Changeset 7479

Show
Ignore:
Timestamp:
27/04/11 15:35:38 (13 months ago)
Author:
westram
Message:
  • removed dead code (macro related)
Location:
branches/dev
Files:
1 removed
3 modified

Legend:

Unmodified
Added
Removed
  • branches/dev/WINDOW/AW_window.cxx

    r7452 r7479  
    686686#endif // DEBUG 
    687687} 
    688  
    689 static void macro_message_cb(AW_window *aw, AW_CL); 
    690688 
    691689bool AW_cb_struct::is_equal(const AW_cb_struct& other) const { 
     
    737735 
    738736        bool isModalCallback = (f == AW_CB(message_cb) || 
    739                                 f == AW_CB(macro_message_cb) || 
    740737                                f == AW_CB(input_history_cb) || 
    741738                                f == AW_CB(input_cb) || 
     
    34573454} 
    34583455 
    3459  
    3460 #define AW_MESSAGE_AWAR "tmp/message/macro" 
    3461  
    3462 static void macro_message_cb(AW_window *aw, AW_CL) { 
    3463     AW_root *root = aw->get_root(); 
    3464     aw->hide(); 
    3465  
    3466     if (root->prvt->recording_macro_file) { 
    3467         char *s = root->awar(AW_MESSAGE_AWAR)->read_string(); 
    3468         fprintf(root->prvt->recording_macro_file, "MESSAGE\t"); 
    3469         GBS_fwrite_string(s, root->prvt->recording_macro_file); 
    3470         fprintf(root->prvt->recording_macro_file, "\n"); 
    3471         delete s; 
    3472     } 
    3473  
    3474     if (root->prvt->executing_macro_file) { 
    3475         // root->enable_execute_macro(); @@@@ 
    3476     } 
    3477  
    3478     return; 
    3479 } 
    3480  
    3481 static void aw_clear_macro_message_cb(AW_window *aww) { 
    3482     aww->get_root()->awar(AW_MESSAGE_AWAR)->write_string(""); 
    3483 } 
    3484  
    3485 void aw_macro_message(const char *templat, ...) 
    3486 // @@@ this function is unused. 
    3487 { 
    3488  
    3489     AW_root *root = AW_root::SINGLETON; 
    3490     char buffer[10000]; 
    3491     { 
    3492         va_list parg; 
    3493         va_start(parg, templat); 
    3494         vsprintf(buffer, templat, parg); 
    3495     } 
    3496     static AW_window_message *aw_msg = 0; 
    3497  
    3498     root->awar_string(AW_MESSAGE_AWAR)->write_string(buffer); 
    3499  
    3500     if (!aw_msg) { 
    3501         aw_msg = new AW_window_message; 
    3502  
    3503         aw_msg->init(root, "MESSAGE", false); 
    3504         aw_msg->load_xfig("macro_message.fig"); 
    3505  
    3506         aw_msg->at("clear"); 
    3507         aw_msg->callback(aw_clear_macro_message_cb); 
    3508         aw_msg->create_button("OK", "OK", "O"); 
    3509  
    3510         aw_msg->at("Message"); 
    3511         aw_msg->create_text_field(AW_MESSAGE_AWAR); 
    3512  
    3513         aw_msg->at("hide"); 
    3514         aw_msg->callback(macro_message_cb, 0); 
    3515         aw_msg->create_button("OK", "OK", "O"); 
    3516     } 
    3517  
    3518     aw_msg->show(); 
    3519     if (root->prvt->executing_macro_file) { 
    3520         root->stop_execute_macro(); 
    3521     } 
    3522 } 
    3523  
    35243456GB_ERROR AW_root::start_macro_recording(const char *file, 
    35253457        const char *application_id, const char *stop_action_name) { 
     
    35893521    free(path); 
    35903522    return 0; 
    3591 } 
    3592  
    3593 void AW_root::stop_execute_macro() { 
    3594  
    35953523} 
    35963524 
  • branches/dev/WINDOW/aw_root.hxx

    r7452 r7479  
    4040 
    4141void aw_set_local_message(); // no message window, AWAR_ERROR_MESSAGES instead (used by EDIT4) 
    42  
    43 void aw_macro_message(const char *temp, ...) __ATTR__FORMAT(1); // gives control to the user 
    4442 
    4543// Read a string from the user : 
     
    162160    GB_ERROR stop_macro_recording(); 
    163161    GB_ERROR execute_macro(const char *file); 
    164     void     stop_execute_macro(); // Starts macro window main loop, delayed return 
    165     GB_ERROR enable_execute_macro(FILE *mfile, const char *mname); // leave macro window main loop, returns stop_execute_macro 
    166162 
    167163    void define_remote_command(struct AW_cb_struct *cbs); 
  • branches/dev/WINDOW/aw_window_Xm.hxx

    r7452 r7479  
    262262    char    *application_name_for_macros; 
    263263    char    *stop_action_name; 
    264     FILE    *executing_macro_file; 
    265264    GB_HASH *action_hash; 
    266265