From: David Hill Date: Fri, 20 Jul 2012 16:40:16 +0000 (-0400) Subject: removed unused function X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=a88b31468ea39bacfdf04e60b8c8ea6326c2e9e6;p=spectrwm.git removed unused function --- diff --git a/spectrwm.c b/spectrwm.c index a4cad40..73e3fc7 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -647,7 +647,6 @@ struct ewmh_hint { }; /* function prototypes */ -xcb_char2b_t *char2b(const char *); int conf_load(char *, int); void constrain_window(struct ws_win *, struct swm_region *, int); void do_sync(void); @@ -672,26 +671,6 @@ void update_window(struct ws_win *); char *get_atom_name(xcb_atom_t); #endif -/* function definitions */ -xcb_char2b_t * -char2b(const char *str) -{ - xcb_char2b_t *s; - size_t i, len; - - len = strlen(str); - s = malloc(len * sizeof(xcb_char2b_t)); - if (!s) - return (NULL); - - for (i = 0; i < len; i++) { - s[i].byte1 = '\0'; - s[i].byte2 = str[i]; - } - - return (s); -} - int parse_rgb(const char *rgb, uint16_t *rr, uint16_t *gg, uint16_t *bb) {