Remove unused variable.
authorCarl Hetherington <cth@carlh.net>
Sat, 24 Feb 2024 20:44:25 +0000 (21:44 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 25 Feb 2024 18:58:17 +0000 (19:58 +0100)
src/language_tag.cc

index 8faf226ca8fd1d0e87074cc0cd6711cc86567490..037814f927dfe7d4b040b32bbf3bb3cb77705542 100644 (file)
@@ -432,7 +432,6 @@ load_language_tag_list (boost::filesystem::path tags_directory, string name, std
        }
        char buffer[512];
 
-       int i = 0;
        while (!f.eof()) {
                char* r = f.gets(buffer, sizeof(buffer));
                if (r == 0) {
@@ -447,7 +446,6 @@ load_language_tag_list (boost::filesystem::path tags_directory, string name, std
                string b = buffer;
                trim (b);
                add (a, b);
-               ++i;
        }
 }