Changeset f34dd65 for filter.c


Ignore:
Timestamp:
Feb 11, 2009, 12:20:22 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7980fb2
Parents:
823671c
git-author:
Nelson Elhage <nelhage@mit.edu> (02/08/09 16:31:14)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:22)
Message:
Kill a whole bunch of unused code.

I generated a list of dead functions by building with
-ffunction-sections and linking with -Wl,--gc-sections
-Wl,--print-gc-sections

I kept a number of functions that seemed to be logical parts of an
existing API, as well as stuff in varstubs.c, since that file is
autogenerated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r9711a6e rf34dd65  
    1818{
    1919  f->name=owl_strdup(name);
    20   f->polarity=0;
    2120  f->fgcolor=OWL_COLOR_DEFAULT;
    2221  f->bgcolor=OWL_COLOR_DEFAULT;
     
    157156}
    158157
    159 void owl_filter_set_polarity_match(owl_filter *f)
    160 {
    161   f->polarity=0;
    162 }
    163 
    164 void owl_filter_set_polarity_unmatch(owl_filter *f)
    165 {
    166   f->polarity=1;
    167 }
    168 
    169158void owl_filter_set_fgcolor(owl_filter *f, int color)
    170159{
     
    205194  if(!f->root) return 0;
    206195  ret = owl_filterelement_match(f->root, m);
    207   if(f->polarity) ret = !ret;
    208196  return ret;
    209197}
Note: See TracChangeset for help on using the changeset viewer.