From 31330231f1955279a6296cf9425a1ea9221919b1 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Fri, 7 Sep 2012 12:36:16 -0700 Subject: drop special case for msvc bucket count Calling bucket_count() works locally with MSVC. I wonder if some other change in the code fixed this. --- src/ninja.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ninja.cc b/src/ninja.cc index 7585628..fb273be 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -633,12 +633,7 @@ void DumpMetrics(Globals* globals) { printf("\n"); int count = (int)globals->state->paths_.size(); - int buckets = -#ifdef _MSC_VER - (int)globals->state->paths_.comp.bucket_size; -#else - (int)globals->state->paths_.bucket_count(); -#endif + int buckets = (int)globals->state->paths_.bucket_count(); printf("path->node hash load %.2f (%d entries / %d buckets)\n", count / (double) buckets, count, buckets); } -- cgit v0.12