Changeset 8264

Show
Ignore:
Timestamp:
30/11/11 12:13:13 (6 months ago)
Author:
westram
Message:
  • removed unused(-but-set) variables/params
Location:
trunk/EDIT4
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_block.cxx

    r8133 r8264  
    170170 
    171171void ED4_with_whole_block(ED4_blockoperation block_operation, int repeat) { 
    172     GB_ERROR               error    = GB_begin_transaction(GLOBAL_gb_main); 
    173     ED4_sequence_terminal *err_term = 0; 
    174     ED4_cursor            *cursor   = &ED4_ROOT->get_ed4w()->cursor; 
    175     int                    base_pos = (cursor && cursor->owner_of_cursor != 0) ? cursor->get_base_position() : -1; 
     172    GB_ERROR    error    = GB_begin_transaction(GLOBAL_gb_main); 
     173    ED4_cursor *cursor   = &ED4_ROOT->get_ed4w()->cursor; 
     174    int         base_pos = (cursor && cursor->owner_of_cursor != 0) ? cursor->get_base_position() : -1; 
    176175 
    177176    switch (blocktype) { 
     
    180179            break; 
    181180        } 
    182         case ED4_BT_LINEBLOCK: { 
     181        case ED4_BT_LINEBLOCK: { // @@@ dry 
    183182            ED4_list_elem *listElem = ED4_ROOT->selected_objects.first(); 
    184183            while (listElem && !error) { 
     
    186185                ED4_sequence_terminal *seqTerm        = selectionEntry->object->get_parent(ED4_L_SPECIES)->search_spec_child_rek(ED4_L_SEQUENCE_STRING)->to_sequence_terminal(); 
    187186 
    188                 error               = perform_block_operation_on_whole_sequence(block_operation, seqTerm, repeat); 
    189                 if (error) err_term = seqTerm; 
    190  
     187                error    = perform_block_operation_on_whole_sequence(block_operation, seqTerm, repeat); 
    191188                listElem = listElem->next(); 
    192189            } 
     
    194191        } 
    195192        case ED4_BT_MODIFIED_COLUMNBLOCK: 
    196         case ED4_BT_COLUMNBLOCK: { 
     193        case ED4_BT_COLUMNBLOCK: { // @@@ vs here 
    197194            ED4_list_elem *listElem = ED4_ROOT->selected_objects.first(); 
    198195            while (listElem && !error) { 
     
    200197                ED4_sequence_terminal *seqTerm = selectionEntry->object->get_parent(ED4_L_SPECIES)->search_spec_child_rek(ED4_L_SEQUENCE_STRING)->to_sequence_terminal(); 
    201198 
    202                 error = perform_block_operation_on_part_of_sequence(block_operation, seqTerm, repeat); 
    203                 if (error) err_term = seqTerm; 
    204  
     199                error    = perform_block_operation_on_part_of_sequence(block_operation, seqTerm, repeat); 
    205200                listElem = listElem->next(); 
    206201            } 
  • trunk/EDIT4/ED4_manager.cxx

    r8133 r8264  
    507507    ED4_list_elem       *list_elem; 
    508508    bool                 i_am_consensus = 0; 
    509     ED4_AREA_LEVEL       level; 
    510509    ED4_base            *found_member   = NULL; 
    511510    ED4_extension        loc; 
     
    551550 
    552551 
    553         old_parent                                       = object->parent; 
    554         ED4_multi_species_manager *multi_species_manager = NULL; 
    555  
    556         level = get_area_level(&multi_species_manager); 
     552        old_parent = object->parent; 
    557553 
    558554#if defined(LIMIT_TOP_AREA_SPACE) 
     
    945941 
    946942ED4_returncode ED4_main_manager::resize_requested_by_parent() { 
    947     ED4_returncode result = ED4_R_OK; 
    948  
    949943    if (update_info.resize) { 
    950         result = ED4_manager::resize_requested_by_parent(); 
     944        ED4_manager::resize_requested_by_parent(); 
    951945        ED4_ROOT->get_ed4w()->update_scrolled_rectangle(); 
    952946    } 
  • trunk/EDIT4/ED4_no_class.cxx

    r7812 r8264  
    166166 
    167167    if (object->is_terminal()) { 
    168         GB_TYPES gb_type; 
    169  
    170         if (object->get_species_pointer()) { 
    171             gb_type = GB_read_type(object->get_species_pointer()); 
    172         } 
    173         else { 
    174             gb_type = GB_NONE; 
    175         } 
    176  
    177168        ED4_base *species_manager = object->get_parent(ED4_L_SPECIES); 
    178169 
  • trunk/EDIT4/ED4_terminal.cxx

    r8133 r8264  
    390390ED4_returncode ED4_terminal::draw_drag_box(AW_pos x, AW_pos y, GB_CSTR text, int cursor_y)      // draws drag box of object at location abs_x, abs_y 
    391391{ 
    392     ED4_index   i; 
    393     AW_pos          width, height, drag_x, drag_y; 
    394     AW_pos      drag_line_x0[3], drag_line_y0[3]; 
    395     AW_pos      drag_line_x1[3], drag_line_y1[3]; 
    396     ED4_base    *drag_target = NULL; 
    397     AW_pos      target_x, target_y; 
    398     ED4_extension   location; 
    399  
    400     width = extension.size[WIDTH] - 1; 
    401     height = extension.size[HEIGHT] - 1; 
    402  
    403     if (cursor_y!=-1) 
    404     { 
     392    ED4_index      i; 
     393    AW_pos         drag_x, drag_y; 
     394    AW_pos         drag_line_x0[3], drag_line_y0[3]; 
     395    AW_pos         drag_line_x1[3], drag_line_y1[3]; 
     396    ED4_base      *drag_target = NULL; 
     397    AW_pos         target_x, target_y; 
     398    ED4_extension  location; 
     399 
     400    if (cursor_y!=-1) { 
    405401        ED4_device_manager *device_manager = ED4_ROOT->main_manager->search_spec_child_rek(ED4_L_DEVICE)->to_device_manager(); 
    406402        drag_x = 0; 
  • trunk/EDIT4/ed4_class.hxx

    r8133 r8264  
    1212#endif 
    1313 
    14 // #define LIMIT_TOP_AREA_SPACE // // if defined, top area is size-limited 
     14// #define LIMIT_TOP_AREA_SPACE // // if defined, top area is size-limited // @@@ remove this 
    1515#ifdef LIMIT_TOP_AREA_SPACE 
    1616#define MAX_TOP_AREA_SIZE 10    // size limit for top-area