From 41e35186068350ef71d8503033ec8829fc24bf97 Mon Sep 17 00:00:00 2001 From: Steffen Ohrendorf Date: Thu, 7 Dec 2023 21:47:23 +0100 Subject: [PATCH] remove unused variable --- src/soglb/gl/shader.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/soglb/gl/shader.cpp b/src/soglb/gl/shader.cpp index 501547ee9..bd5abee30 100644 --- a/src/soglb/gl/shader.cpp +++ b/src/soglb/gl/shader.cpp @@ -56,7 +56,6 @@ void replaceIncludes(const std::filesystem::path& filepath, // Replace the #include "foo.bar" with the sourced file contents of "filepath/foo.bar" size_t headPos = 0; - size_t line = 1; while(headPos < source.length()) { const auto lastPos = headPos; @@ -78,7 +77,6 @@ void replaceIncludes(const std::filesystem::path& filepath, { const auto part = source.substr(lastPos, headPos - lastPos); out.append(part); - line += std::count(part.begin(), part.end(), '\n'); } // find the start quote "