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

Unified Diff: gpu/command_buffer/service/program_manager.cc

Issue 10828013: Removed dead code in program_manager.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: gpu/command_buffer/service/program_manager.cc
diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc
index f0c9141e6d5353a261aacacb2d17bb3878a703ba..7902e259a3ae015aa0faeed3efcd5080fded9112 100644
--- a/gpu/command_buffer/service/program_manager.cc
+++ b/gpu/command_buffer/service/program_manager.cc
@@ -80,11 +80,7 @@ bool GetUniformNameSansElement(
if (digit < 0 || digit > 9) {
return false;
}
- index = index * 10 + digit;
- }
-
- if (index < 0) {
- return false;
+ index = (GLint) digit;
Tyler Breisacher (Chromium) 2012/07/25 17:47:19 Why are you removing the "index * 10 +" part?
}
*element_index = index;
« 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