CLI interface to medialist (fossil mirror)
Révision | 628cbb331ecd4bb632032fb0b2dbc3300c9c599b (tree) |
---|---|
l'heure | 2023-03-11 18:18:23 |
Auteur | mio <stigma@disr...> |
Commiter | mio |
Remove redundant 'index' from foreach
FossilOrigin-Name: 71d150982bf0bc697a51431d6116e3a7044ed685ef33a0c6e1197bfa2394e91e
@@ -807,7 +807,7 @@ MediaListItem ml_fetch_item(MediaList* list, size_t id) | ||
807 | 807 | size_t endIndex = 0; |
808 | 808 | size_t lastIndex = 0; |
809 | 809 | |
810 | - foreach(size_t idx, int[2] header; headerPositions) { | |
810 | + foreach(int[2] header; headerPositions) { | |
811 | 811 | switch(header[0]) { |
812 | 812 | case MLHeaders.title: |
813 | 813 | titleIndex = header[1]; |
@@ -1077,7 +1077,7 @@ MediaListItem[] ml_fetch_all(MediaList* list) | ||
1077 | 1077 | size_t endIndex = 0; |
1078 | 1078 | size_t lastIndex = 0; |
1079 | 1079 | |
1080 | - foreach (size_t idx, int[2] header; headerPositions) | |
1080 | + foreach (int[2] header; headerPositions) | |
1081 | 1081 | { |
1082 | 1082 | switch (header[0]) |
1083 | 1083 | { |