Skip to content

Instantly share code, notes, and snippets.

@Endle
Created November 28, 2014 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Endle/c31a2aeacff22f318ee1 to your computer and use it in GitHub Desktop.
Save Endle/c31a2aeacff22f318ee1 to your computer and use it in GitHub Desktop.
Gist by paste.py @ 2014-11-28 21:15:07.331278
# HG changeset patch
# User Zhenbo Li <litimetal@gmail.com>
# Date 1417180030 -28800
# Fri Nov 28 21:07:10 2014 +0800
# Node ID 5f666868ea28750684c65017761011a05f993d45
# Parent 1162e4a4d7a2ba784392f7812b4aeb1e23a1d5ba
Fix: variable ‘fifoCallbacksRegistered’ set but not used
diff -r 1162e4a4d7a2 -r 5f666868ea28 xpcom/base/nsMemoryInfoDumper.cpp
--- a/xpcom/base/nsMemoryInfoDumper.cpp Thu Nov 27 22:30:17 2014 -0800
+++ b/xpcom/base/nsMemoryInfoDumper.cpp Fri Nov 28 21:07:10 2014 +0800
@@ -221,8 +221,6 @@
bool
SetupFifo()
{
- static bool fifoCallbacksRegistered = false;
-
if (!FifoWatcher::MaybeCreate()) {
return false;
}
@@ -242,7 +240,6 @@
fw->RegisterCallback(NS_LITERAL_CSTRING("abbreviated gc log"),
doGCCCDump);
- fifoCallbacksRegistered = true;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment