Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8bf14c7
)
removed unused function
author
David Hill
<dhill@conformal.com>
Fri, 20 Jul 2012 16:40:16 +0000
(12:40 -0400)
committer
Reginald Kennedy
<rk@rejii.com>
Fri, 20 Jul 2012 22:00:03 +0000
(06:00 +0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
a4cad40
..
73e3fc7
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-647,7
+647,6
@@
struct ewmh_hint {
};
/* function prototypes */
};
/* 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);
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
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)
{
int
parse_rgb(const char *rgb, uint16_t *rr, uint16_t *gg, uint16_t *bb)
{