Browse Source

and again

Alexander Kuzmenko 8 years ago
parent
commit
a4be6c964b
2 changed files with 1 additions and 22 deletions
  1. 1 1
      extra/haxelib_src
  2. 0 21
      src/generators/genphp7.ml

+ 1 - 1
extra/haxelib_src

@@ -1 +1 @@
-Subproject commit 9d79a55ddb054d79ed8d136f1c0583baa407fd67
+Subproject commit 84e4deb0f677e1255a6ed36ecfa75000e9255be8

+ 0 - 21
src/generators/genphp7.ml

@@ -1789,33 +1789,12 @@ class virtual type_builder ctx wrapper =
 				self#write_expr target;
 				write_index "[" "]"
 			in
-			(*let write_depending_on e =
-				match (reveal_expr e).eexpr with
-					| TArray (t, i) when t  == target ->
-						write_normal_access ()
-					| _ ->
-						write_fast_access ()
-			in*)
 			match follow target.etype with
 				| TInst ({ cl_path = path }, _) when path = array_type_path ->
 					if self#is_in_write_context then
 						write_normal_access()
 					else
 						write_fast_access()
-					(*(match self#parent_expr with
-						| None -> write_fast_access ()
-						| Some expr ->
-							match expr.eexpr with
-								| TUnop (op, _, e) when is_modifying_unop op ->
-									write_depending_on e
-								| TBinop (OpAssign, e, _)
-								| TBinop (OpAssignOp _, e, _)
-								| TField (e, _)
-								| TArray (e, _) ->
-									write_depending_on e
-								| _ ->
-									write_fast_access ()
-					)*)
 				| _ ->
 					write_normal_access ()
 		(**