From e0836b13a3ee95d5fc89d6b4842f1651da751552 Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:00:16 +0100 Subject: [PATCH] removed leftover const vars --- graphs.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/graphs.hpp b/graphs.hpp index 7263650..e6f77ab 100644 --- a/graphs.hpp +++ b/graphs.hpp @@ -966,13 +966,7 @@ namespace graphs template auto plot_experimental(const T &data, const Options &options = {}, Color color = {color_red}) -> Intermediate { cout << "Experimental plot\n"; - - // precalc spans - const long double x_span = options.x.max - options.x.min; - const long double y_span = options.y.max - options.y.min; - const long double x_span_recip = 1.0 / x_span; - const long double y_span_recip = 1.0 / y_span; - + // create new intermediate object for texture and options assert(options.width > 0 && options.height > 0); // enforce valid size for now Intermediate intermediate = { Texture(options.width * options.height), options };