From 0ec3fea524f55274b804766ceab3ff8aa4d352f0 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 31 Mar 2016 20:00:43 +0200 Subject: [PATCH] Small performance improvement It's already checked that there are no duplicates. Signed-off-by: Sven Strickroth --- src/TGitCache/ShellUpdater.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/TGitCache/ShellUpdater.cpp b/src/TGitCache/ShellUpdater.cpp index 01f771b91..06124fe68 100644 --- a/src/TGitCache/ShellUpdater.cpp +++ b/src/TGitCache/ShellUpdater.cpp @@ -69,11 +69,6 @@ void CShellUpdater::AddPathForUpdate(const CTGitPath& path) { { AutoLocker lock(m_critSec); - for (unsigned int i = 0; i < m_pathsToUpdate.size(); ++i) - { - if(m_pathsToUpdate[i] == path) - return; - } m_pathsToUpdate.push_back(path); -- 2.11.4.GIT