[pypy-commit] lang-js default: removed dead code and fixed whitespaces

stepahn noreply at buildbot.pypy.org
Fri Feb 15 14:10:03 CET 2013


Author: Stephan <stephan at stzal.com>
Branch: 
Changeset: r353:6993c1e37591
Date: 2013-02-15 14:09 +0100
http://bitbucket.org/pypy/lang-js/changeset/6993c1e37591/

Log:	removed dead code and fixed whitespaces

diff --git a/js/astbuilder.py b/js/astbuilder.py
--- a/js/astbuilder.py
+++ b/js/astbuilder.py
@@ -356,12 +356,6 @@
         parameters, i = self.get_next_expr(node, i)
         functionbody, i = self.get_next_expr(node, i)
 
-        #params = []
-        #if parameters is not None:
-        #    params = [pident.get_literal() for pident in parameters.nodes]
-
-        #params = self.current_scope_parameters()
-
         if identifier is not None:
             funcname = identifier.get_literal()
         else:
diff --git a/js/environment_record.py b/js/environment_record.py
--- a/js/environment_record.py
+++ b/js/environment_record.py
@@ -83,7 +83,7 @@
         i = (idx + 1)
         assert i >= 0
 
-        self._binding_slots_ = self._binding_slots_[:idx] + self._binding_slots_[i:] #len(self._binding_slots_)]
+        self._binding_slots_ = self._binding_slots_[:idx] + self._binding_slots_[i:]  # len(self._binding_slots_)]
         self._binding_map_ = self._binding_map_.delete(name)
 
     # 10.2.1.1.2
diff --git a/js/execution_context.py b/js/execution_context.py
--- a/js/execution_context.py
+++ b/js/execution_context.py
@@ -70,7 +70,7 @@
 
         # 4.
         if code.is_function_code():
-            names = code.params() #_formal_parameters_
+            names = code.params()
             n = 0
             args = self._argument_values_
 
@@ -104,7 +104,7 @@
             # TODO get calling W_Function
             func = self._w_func_
             arguments = self._argument_values_
-            names = code.params() #_formal_parameters_
+            names = code.params()
             args_obj = W_Arguments(func, names, arguments, env, strict)
 
             if strict is True:
diff --git a/js/jscode.py b/js/jscode.py
--- a/js/jscode.py
+++ b/js/jscode.py
@@ -60,9 +60,6 @@
     def symbols(self):
         return self._symbols.get_symbols()
 
-    def symbol_for_index(self, index):
-        return self._symbols.get_symbol(index)
-
     @jit.unroll_safe
     def params(self):
         return [p for p in self.parameters]


More information about the pypy-commit mailing list