drop special case for msvc bucket count
authorEvan Martin <martine@danga.com>
Fri, 7 Sep 2012 19:36:16 +0000 (12:36 -0700)
committerEvan Martin <martine@danga.com>
Fri, 7 Sep 2012 19:36:16 +0000 (12:36 -0700)
Calling bucket_count() works locally with MSVC.  I wonder if some
other change in the code fixed this.

src/ninja.cc

index 75856285e2666d8f523603dd8a6bb467bd22ceeb..fb273beddc74ffc9802538d3512c646b636dbe53 100644 (file)
@@ -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);
 }