diff --git a/toolkit/components/url-classifier/HashStore.cpp b/toolkit/components/url-classifier/HashStore.cpp index dcf8ced0351c..bafaa7f3d140 100644 --- a/toolkit/components/url-classifier/HashStore.cpp +++ b/toolkit/components/url-classifier/HashStore.cpp @@ -983,14 +983,9 @@ nsresult HashStore::ReadCompletionsLegacyV3(AddCompleteArray& aCompletes) { template static void Erase(FallibleTArray* array, - typename nsTArray::iterator& iterStart, - typename nsTArray::iterator& iterEnd) { - uint32_t start = iterStart - array->begin(); - uint32_t count = iterEnd - iterStart; - - if (count > 0) { - array->RemoveElementsAt(start, count); - } + typename FallibleTArray::iterator& iterStart, + typename FallibleTArray::iterator& iterEnd) { + array->RemoveElementsAt(iterStart, iterEnd); } // Find items matching between |subs| and |adds|, and remove them,