@@ -66,7 +66,6 @@ define(function GotoAgent(require, exports, module) {
6666 */
6767 function _makeHTMLTarget ( targets , node ) {
6868 if ( node . location ) {
69- var target = { } ;
7069 var url = DOMAgent . url ;
7170 var location = node . location ;
7271 if ( node . canHaveChildren ( ) ) {
@@ -85,7 +84,6 @@ define(function GotoAgent(require, exports, module) {
8584 */
8685 function _makeCSSTarget ( targets , rule ) {
8786 if ( rule . sourceURL ) {
88- var target = { } ;
8987 var url = rule . sourceURL ;
9088 url += ":" + rule . style . range . start ;
9189 var name = rule . selectorList . text ;
@@ -101,7 +99,6 @@ define(function GotoAgent(require, exports, module) {
10199 function _makeJSTarget ( targets , callFrame ) {
102100 var script = ScriptAgent . scriptWithId ( callFrame . location . scriptId ) ;
103101 if ( script && script . url ) {
104- var target = { } ;
105102 var url = script . url ;
106103 url += ":" + callFrame . location . lineNumber + "," + callFrame . location . columnNumber ;
107104 var name = callFrame . functionName ;
@@ -120,7 +117,7 @@ define(function GotoAgent(require, exports, module) {
120117
121118 // get all css rules that apply to the given node
122119 Inspector . CSS . getMatchedStylesForNode ( node . nodeId , function onMatchedStyles ( res ) {
123- var i , callFrame , name , script , url , rule , targets = [ ] ;
120+ var i , targets = [ ] ;
124121 _makeHTMLTarget ( targets , node ) ;
125122 for ( i in node . trace ) {
126123 _makeJSTarget ( targets , node . trace [ i ] ) ;
@@ -220,4 +217,4 @@ define(function GotoAgent(require, exports, module) {
220217 exports . open = open ;
221218 exports . load = load ;
222219 exports . unload = unload ;
223- } ) ;
220+ } ) ;
0 commit comments