Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stohrendorf committed Dec 7, 2023
1 parent 64a9adb commit 41e3518
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/soglb/gl/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 "
Expand Down

0 comments on commit 41e3518

Please sign in to comment.