Bug 683729: Remove unused variable 'frame' from js::Debugger::onTrap(). r=jorendorff
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 01 Sep 2011 00:10:37 -0700
changeset 76370 dc12ae87f5b92652b1fb49f725d848906d962b1b
parent 76369 893d04548dd91416867f956a981b11cb52aa20ba
child 76371 4e3d2bb73029fe01ba9011dae4f3b88c8d54a39e
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersjorendorff
bugs683729
milestone9.0a1
Bug 683729: Remove unused variable 'frame' from js::Debugger::onTrap(). r=jorendorff
js/src/vm/Debugger.cpp
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -866,17 +866,16 @@ Debugger::onTrap(JSContext *cx, Value *v
 
     /* Build list of breakpoint handlers. */
     Vector<Breakpoint *> triggered(cx);
     for (Breakpoint *bp = site->firstBreakpoint(); bp; bp = bp->nextInSite()) {
         if (!triggered.append(bp))
             return JSTRAP_ERROR;
     }
 
-    Value frame = UndefinedValue();
     for (Breakpoint **p = triggered.begin(); p != triggered.end(); p++) {
         Breakpoint *bp = *p;
 
         /* Handlers can clear breakpoints. Check that bp still exists. */
         if (!site || !site->hasBreakpoint(bp))
             continue;
 
         Debugger *dbg = bp->debugger;