Changeset a728387


Ignore:
Timestamp:
Sep 18, 2010, 5:07:40 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
9c1e61d
Parents:
2ec737f
git-author:
David Benjamin <davidben@mit.edu> (08/15/10 19:31:45)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:40)
Message:
Just remove owl_function_search_{start,continue} altogether

There's only one caller, and they're (now) tiny. We may as well just
inline them.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r2ec737f ra728387  
    25382538   
    25392539  if (argc==1 || (argc==2 && !strcmp(argv[1], "-r"))) {
    2540     owl_function_search_continue(direction);
     2540    owl_function_search_helper(1, direction);
    25412541  } else {
    2542     owl_function_search_start(buffstart, direction);
     2542    owl_function_set_search(buffstart);
     2543    owl_function_search_helper(0, direction);
    25432544  }
    25442545 
  • functions.c

    r2ec737f ra728387  
    28982898}
    28992899
    2900 void owl_function_search_start(const char *string, int direction)
    2901 {
    2902   /* direction is OWL_DIRECTION_DOWNWARDS or OWL_DIRECTION_UPWARDS */
    2903   owl_function_set_search(string);
    2904   owl_function_search_helper(0, direction);
    2905 }
    2906 
    2907 void owl_function_search_continue(int direction)
    2908 {
    2909   /* direction is OWL_DIRECTION_DOWNWARDS or OWL_DIRECTION_UPWARDS */
    2910   owl_function_search_helper(1, direction);
    2911 }
    2912 
    29132900void owl_function_search_helper(int mode, int direction)
    29142901{
Note: See TracChangeset for help on using the changeset viewer.