| Index: tools/dom/scripts/systemnative.py | 
| =================================================================== | 
| --- tools/dom/scripts/systemnative.py	(revision 26337) | 
| +++ tools/dom/scripts/systemnative.py	(working copy) | 
| @@ -93,12 +93,6 @@ | 
| else: | 
| return set([]) | 
|  | 
| -def array_type(data_type): | 
| -    matched = re.match(r'([\w\d_\s]+)\[\]', data_type) | 
| -    if not matched: | 
| -        return None | 
| -    return matched.group(1) | 
| - | 
| def _GetCPPTypeName(interface_name, callback_name, cpp_name): | 
| # TODO(vsm): We need to track the original IDL file name in order to recover | 
| # the proper CPP name. | 
| @@ -720,9 +714,6 @@ | 
|  | 
| requires_script_execution_context = (ext_attrs.get('CallWith') == 'ScriptExecutionContext' or | 
| ext_attrs.get('ConstructorCallWith') == 'ScriptExecutionContext') | 
| - | 
| -    requires_document = ext_attrs.get('ConstructorCallWith') == 'Document' | 
| - | 
| if requires_script_execution_context: | 
| raises_exceptions = True | 
| cpp_arguments = ['context'] | 
| @@ -734,7 +725,7 @@ | 
| cpp_arguments = ['&state'] | 
|  | 
| requires_dom_window = 'NamedConstructor' in ext_attrs | 
| -    if requires_dom_window or requires_document: | 
| +    if requires_dom_window: | 
| raises_exceptions = True | 
| cpp_arguments = ['document'] | 
|  | 
| @@ -819,7 +810,7 @@ | 
| '        }\n' | 
| '        ScriptState& state = *currentState;\n\n') | 
|  | 
| -    if requires_dom_window or requires_document: | 
| +    if requires_dom_window: | 
| self._cpp_impl_includes.add('"DOMWindow.h"') | 
| body_emitter.Emit( | 
| '        DOMWindow* domWindow = DartUtilities::domWindowForCurrentIsolate();\n' | 
|  |