@@ -67,7 +67,6 @@ define(function GotoAgent(require, exports, module) {
6767 */
6868 function _makeHTMLTarget ( targets , node ) {
6969 if ( node . location ) {
70- var target = { } ;
7170 var url = DOMAgent . url ;
7271 var location = node . location ;
7372 if ( node . canHaveChildren ( ) ) {
@@ -86,7 +85,6 @@ define(function GotoAgent(require, exports, module) {
8685 */
8786 function _makeCSSTarget ( targets , rule ) {
8887 if ( rule . sourceURL ) {
89- var target = { } ;
9088 var url = rule . sourceURL ;
9189 url += ":" + rule . style . range . start ;
9290 var name = rule . selectorList . text ;
@@ -102,7 +100,6 @@ define(function GotoAgent(require, exports, module) {
102100 function _makeJSTarget ( targets , callFrame ) {
103101 var script = ScriptAgent . scriptWithId ( callFrame . location . scriptId ) ;
104102 if ( script && script . url ) {
105- var target = { } ;
106103 var url = script . url ;
107104 url += ":" + callFrame . location . lineNumber + "," + callFrame . location . columnNumber ;
108105 var name = callFrame . functionName ;
@@ -121,7 +118,7 @@ define(function GotoAgent(require, exports, module) {
121118
122119 // get all css rules that apply to the given node
123120 Inspector . CSS . getMatchedStylesForNode ( node . nodeId , function onMatchedStyles ( res ) {
124- var i , callFrame , name , script , url , rule , targets = [ ] ;
121+ var i , targets = [ ] ;
125122 _makeHTMLTarget ( targets , node ) ;
126123 for ( i in node . trace ) {
127124 _makeJSTarget ( targets , node . trace [ i ] ) ;
@@ -221,4 +218,4 @@ define(function GotoAgent(require, exports, module) {
221218 exports . open = open ;
222219 exports . load = load ;
223220 exports . unload = unload ;
224- } ) ;
221+ } ) ;
0 commit comments