Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: src/core/SkConvolver.cpp

Issue 2270613003: Remove some useless declarations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove a useless check, here, the value of 'a' must be at least 256 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkConvolver.cpp
diff --git a/src/core/SkConvolver.cpp b/src/core/SkConvolver.cpp
index c662e2ddaf0db82e0e40b5dd1c5c86ed4dd39206..5f0dc0b97f2a078a8f6a1c312bd94096686c5b3c 100644
--- a/src/core/SkConvolver.cpp
+++ b/src/core/SkConvolver.cpp
@@ -13,9 +13,6 @@ namespace {
if (static_cast<unsigned>(a) < 256) {
return a; // Avoid the extra check in the common case.
}
- if (a < 0) {
- return 0;
- }
return 255;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698