From 90f169881f744e4719122888a720c8c03f3bb346 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 6 Sep 2016 19:57:36 +1000 Subject: Remove unused ArdourCanvas::HSV constructor Using stringstream for this is not locale independant. If this constructor is needed at a later stage it should be reimplemented. --- libs/canvas/canvas/colors.h | 1 - libs/canvas/colors.cc | 9 --------- 2 files changed, 10 deletions(-) (limited to 'libs/canvas') diff --git a/libs/canvas/canvas/colors.h b/libs/canvas/canvas/colors.h index b2f6c1e2ff..f48e2347a3 100644 --- a/libs/canvas/canvas/colors.h +++ b/libs/canvas/canvas/colors.h @@ -77,7 +77,6 @@ struct LIBCANVAS_API HSV HSV (); HSV (double h, double s, double v, double a = 1.0); HSV (Color); - HSV (const std::string&); double h; double s; diff --git a/libs/canvas/colors.cc b/libs/canvas/colors.cc index a246aa3cf4..c288d4e383 100644 --- a/libs/canvas/colors.cc +++ b/libs/canvas/colors.cc @@ -246,15 +246,6 @@ HSV::HSV (Color c) color_to_hsva (c, h, s, v, a); } -HSV::HSV (const std::string& str) -{ - stringstream ss (str); - ss >> h; - ss >> s; - ss >> v; - ss >> a; -} - string HSV::to_string () const { -- cgit v1.2.3