Commit 032255a6 authored by Prashant Nevase's avatar Prashant Nevase Committed by Commit Bot

Remove old code in DarkModeImageClassifier.

After crrev.com/c/2352251, the code added for storing cache result
after doing initial classification, is not required. This patch
removes it.

Bug: 1094005
Change-Id: I010bfeba0d97e9360482a57ba83bae43e178c88e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2364383Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Prashant Nevase <prashant.n@samsung.com>
Cr-Commit-Position: refs/heads/master@{#800286}
parent c05be04a
......@@ -117,11 +117,6 @@ DarkModeClassification DarkModeImageClassifier::Classify(
if (result != DarkModeClassification::kNotClassified)
return result;
if (result != DarkModeClassification::kNotClassified) {
cache->Add(image_id, src, result);
return result;
}
auto features_or_null = GetFeatures(paint_image, src);
if (!features_or_null) {
// Do not cache this classification.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment