diff options
Diffstat (limited to 'lib/colors.c')
-rw-r--r-- | lib/colors.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/colors.c b/lib/colors.c index da5a3e1f4..933bb810a 100644 --- a/lib/colors.c +++ b/lib/colors.c @@ -113,41 +113,6 @@ static int cmp_scheme_name(const void *a0, const void *b0) } /* - * Maintains human readable color names - */ -const char *color_sequence_from_colorname(const char *str) -{ - static const struct ul_color_scheme basic_schemes[] = { - { "black", UL_COLOR_BLACK }, - { "blue", UL_COLOR_BLUE }, - { "brown", UL_COLOR_BROWN }, - { "cyan", UL_COLOR_CYAN }, - { "darkgray", UL_COLOR_DARK_GRAY }, - { "gray", UL_COLOR_GRAY }, - { "green", UL_COLOR_GREEN }, - { "lightblue", UL_COLOR_BOLD_BLUE }, - { "lightcyan", UL_COLOR_BOLD_CYAN }, - { "lightgray,", UL_COLOR_GRAY }, - { "lightgreen", UL_COLOR_BOLD_GREEN }, - { "lightmagenta", UL_COLOR_BOLD_MAGENTA }, - { "lightred", UL_COLOR_BOLD_RED }, - { "magenta", UL_COLOR_MAGENTA }, - { "red", UL_COLOR_RED }, - { "yellow", UL_COLOR_BOLD_YELLOW }, - }; - struct ul_color_scheme key = { .name = (char *) str }, *res; - - if (!str) - return NULL; - - res = bsearch(&key, basic_schemes, ARRAY_SIZE(basic_schemes), - sizeof(struct ul_color_scheme), - cmp_scheme_name); - return res ? res->seq : NULL; -} - - -/* * Resets control struct (note that we don't allocate the struct) */ static void colors_reset(struct ul_color_ctl *cc) |