summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-04 00:47:12 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-04 00:47:12 +0100
commita26ca7a0560f17513217b1c1190949a6c0cbd8f5 (patch)
treed8717e3dfb11e132b86d6f00d3e475b9ebe7fa25
parent76e8b5988a3ae13d80bd34ff4a00766b724075b6 (diff)
downloadratpoison-a26ca7a0560f17513217b1c1190949a6c0cbd8f5.zip
Kill init_globals().
* selection has static storage and is thus correctly initialized.
-rw-r--r--src/globals.c6
-rw-r--r--src/globals.h2
-rw-r--r--src/main.c1
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);
diff --git a/src/main.c b/src/main.c
index 516abd5..44dec8e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 ();