diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-04 00:47:12 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-04 00:47:12 +0100 |
commit | a26ca7a0560f17513217b1c1190949a6c0cbd8f5 (patch) | |
tree | d8717e3dfb11e132b86d6f00d3e475b9ebe7fa25 | |
parent | 76e8b5988a3ae13d80bd34ff4a00766b724075b6 (diff) | |
download | ratpoison-a26ca7a0560f17513217b1c1190949a6c0cbd8f5.zip |
Kill init_globals().
* selection has static storage and is thus correctly initialized.
-rw-r--r-- | src/globals.c | 6 | ||||
-rw-r--r-- | src/globals.h | 2 | ||||
-rw-r--r-- | src/main.c | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/globals.c b/src/globals.c index 7faff71..1481a5c 100644 --- a/src/globals.c +++ b/src/globals.c @@ -268,12 +268,6 @@ set_window_focus (Window window) LIST_HEAD (rp_frame_undos); LIST_HEAD (rp_frame_redos); -void -init_globals (void) -{ - selection.text = NULL; - selection.len = 0; -} /* Wrapper font functions to support Xft */ diff --git a/src/globals.h b/src/globals.h index 12ccffd..1fb7e0f 100644 --- a/src/globals.h +++ b/src/globals.h @@ -207,8 +207,6 @@ void set_selection (char *txt); void set_nselection (char *txt, int len); char *get_selection (void); -void init_globals (void); - /* Wrapper font functions to support Xft */ void rp_draw_string (rp_screen *s, Drawable d, int style, int x, int y, char *string, int length); @@ -722,7 +722,6 @@ main (int argc, char *argv[]) putenv (xsprintf ("RATPOISON=%s", argv[0])); /* Setup ratpoison's internal structures */ - init_globals (); init_defaults (); init_groups (); init_window_stuff (); |