From 99b650a3ba6778e1e2f2858f16629ad898d09af1 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 3 Sep 2015 21:54:27 +0200 Subject: [PATCH] Color: Remove support for underscores in color values Values like 'on_red' will no longer work. This feature has been deprecated since 2009. --- src/Color.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Color.cpp b/src/Color.cpp index e40392b37..9b0035cf5 100644 --- a/src/Color.cpp +++ b/src/Color.cpp @@ -100,11 +100,7 @@ Color::Color (const std::string& spec) : _value (0) { #ifdef FEATURE_COLOR - // By converting underscores to spaces, we inherently support the old "on_red" - // style of specifying background colors. We consider underscores to be - // deprecated. std::string modifiable_spec = spec; - std::replace (modifiable_spec.begin (), modifiable_spec.end (), '_', ' '); // Split spec into words. std::vector words;