Bug 898016 - delete unused evlen variable in EventFilter::Build; r=mayhemer
authorNathan Froyd <froydnj@mozilla.com>
Thu, 25 Jul 2013 12:30:07 -0400
changeset 152328 6177eb51fede83907d516743d5ec5a118f7b55f8
parent 152327 e110da5fee57b5b9cc5711bf6f776f6ee469bb5c
child 152329 411082e7dc9c99d4f492ff7b1da2d4a856c6cd4d
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmayhemer
bugs898016
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 898016 - delete unused evlen variable in EventFilter::Build; r=mayhemer DONTBUILD because NPOTB
xpcom/base/VisualEventTracer.cpp
--- a/xpcom/base/VisualEventTracer.cpp
+++ b/xpcom/base/VisualEventTracer.cpp
@@ -346,17 +346,17 @@ EventFilter::Build(const char * filterVa
 {
   if (!filterVar || !*filterVar)
     return nullptr;
 
   // Reads a comma serpatated list of events.
 
   // Copied from nspr logging code (read of NSPR_LOG_MODULES)
   char eventName[64];
-  int evlen = strlen(filterVar), pos = 0, count, delta = 0;
+  int pos = 0, count, delta = 0;
 
   // Read up to a comma or EOF -> get name of an event first in the list
   count = sscanf(filterVar, "%63[^,]%n", eventName, &delta);
   if (count == 0) 
     return nullptr;
 
   pos = delta;