Changeset f34dd65 for global.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
  • global.c

    r58d1f8a rf34dd65  
    5151  owl_keys_setup_keymaps(&g->kh);
    5252
    53   owl_list_create(&(g->muxevents));
    5453  owl_list_create(&(g->filterlist));
    5554  owl_list_create(&(g->puntlist));
     
    588587}
    589588
    590 /* muxevents */
    591 
    592 owl_muxevents *owl_global_get_muxevents(owl_global *g) {
    593   return(&(g->muxevents));
    594 }
    595 
    596589/* filterlist */
    597590
     
    717710int owl_global_get_newmsgproc_pid(owl_global *g) {
    718711  return(g->newmsgproc_pid);
    719 }
    720 
    721 void owl_global_add_to_malloced(owl_global *g, int i) {
    722   g->malloced+=i;
    723 }
    724 
    725 void owl_global_add_to_freed(owl_global *g, int i) {
    726   g->freed+=1;
    727 }
    728 
    729 int owl_global_get_malloced(owl_global *g) {
    730   return(g->malloced);
    731 }
    732 
    733 int owl_global_get_freed(owl_global *g) {
    734   return(g->freed);
    735 }
    736 
    737 int owl_global_get_meminuse(owl_global *g) {
    738   return(g->malloced-g->freed);
    739712}
    740713
Note: See TracChangeset for help on using the changeset viewer.