From 2500019626d458145ba94f360f77f81975125c12 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 6 Apr 2023 08:48:38 +0200 Subject: [PATCH] Removed unused variable --- src/completion_string.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/completion_string.cpp b/src/completion_string.cpp index 929f85c..e5afe27 100644 --- a/src/completion_string.cpp +++ b/src/completion_string.cpp @@ -83,7 +83,6 @@ clangmm::Cursor clangmm::CompletionString::get_cursor(CXTranslationUnit &tu) con bool equal = true; auto cx_tmp_cursor = cx_parent; if(clang_getCursorKind(cx_tmp_cursor) != CXCursorKind::CXCursor_TranslationUnit) { - int c = 0; auto it = data->parent_parts.rbegin(); for(; it != data->parent_parts.rend(); ++it) { auto name = clangmm::to_string(clang_getCursorDisplayName(cx_tmp_cursor)); @@ -99,7 +98,6 @@ clangmm::Cursor clangmm::CompletionString::get_cursor(CXTranslationUnit &tu) con ++it; break; } - ++c; } if(it != data->parent_parts.rend()) equal = false;