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

Unified Diff: tools/gn/builder_unittest.cc

Issue 213363003: Delete some dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brettw Created 6 years, 9 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 | « net/socket/ssl_client_socket_nss.cc ('k') | tools/gn/command_desc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/builder_unittest.cc
diff --git a/tools/gn/builder_unittest.cc b/tools/gn/builder_unittest.cc
index e605b9e2a82a8c7af15fffb6e0a1fe820ed3df2c..34824ba0229e2a8a44562df2e807aca244e7dac2 100644
--- a/tools/gn/builder_unittest.cc
+++ b/tools/gn/builder_unittest.cc
@@ -35,20 +35,8 @@ class MockLoader : public Loader {
return files_.empty();
}
- // Returns true if one load has been requested and it matches the given
+ // Returns true if two loads have been requested and they match the given
// file. This will clear the records so it will be empty for the next call.
- bool HasLoadedOne(const SourceFile& f) {
- if (files_.size() != 1u) {
- files_.clear();
- return false;
- }
-
- bool match = (files_[0] == f);
- files_.clear();
- return match;
- }
-
- // Like HasLoadedOne above. Accepts any ordering.
bool HasLoadedTwo(const SourceFile& a, const SourceFile& b) {
if (files_.size() != 2u) {
files_.clear();
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | tools/gn/command_desc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698