@@ -1735,7 +1735,6 @@ ExecutionVisualizer.prototype.renderStep = function(step) {
17351735// heap objects don't "jiggle around" (i.e., preserving positional
17361736// invariance). Also, if we set up the layout objects properly, then we
17371737// can take full advantage of d3 to perform rendering and transitions.
1738-
17391738ExecutionVisualizer . prototype . precomputeCurTraceLayouts = function ( ) {
17401739
17411740 // curTraceLayouts is a list of top-level heap layout "objects" with the
@@ -1767,11 +1766,9 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
17671766 this . curTraceLayouts = [ ] ;
17681767 this . curTraceLayouts . push ( [ ] ) ; // pre-seed with an empty sentinel to simplify the code
17691768
1770- assert ( this . curTrace . length > 0 ) ;
1771-
17721769 var myViz = this ; // to prevent confusion of 'this' inside of nested functions
17731770
1774-
1771+ assert ( this . curTrace . length > 0 ) ;
17751772 $ . each ( this . curTrace , function ( i , curEntry ) {
17761773 var prevLayout = myViz . curTraceLayouts [ myViz . curTraceLayouts . length - 1 ] ;
17771774
@@ -1788,7 +1785,6 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
17881785
17891786 var idsAlreadyLaidOut = d3 . map ( ) ; // to prevent infinite recursion
17901787
1791-
17921788 function curLayoutIndexOf ( id ) {
17931789 for ( var i = 0 ; i < curLayout . length ; i ++ ) {
17941790 var row = curLayout [ i ] ;
@@ -1808,10 +1804,6 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
18081804 }
18091805
18101806 function recurseIntoObject ( id , curRow , newRow ) {
1811- //console.log('recurseIntoObject', id,
1812- // $.extend(true /* make a deep copy */ , [], curRow),
1813- // $.extend(true /* make a deep copy */ , [], newRow));
1814-
18151807 // heuristic for laying out 1-D linked data structures: check for enclosing elements that are
18161808 // structurally identical and then lay them out as siblings in the same "row"
18171809 var heapObj = curEntry . heap [ id ] ;
0 commit comments