فهرست منبع

[flash] remove a couple of `untyped`s

Dan Korostelev 6 سال پیش
والد
کامیت
04dcb37e86
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      std/flash/_std/Std.hx

+ 3 - 3
std/flash/_std/Std.hx

@@ -24,7 +24,7 @@ import flash.Boot;
 @:coreApi class Std {
 
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
-		return untyped flash.Boot.__instanceof(v,t);
+		return flash.Boot.__instanceof(v,t);
 	}
 
 	public static inline function downcast<T:{},S:T>( value : T, c : Class<S> ) : S {
@@ -37,7 +37,7 @@ import flash.Boot;
 	}
 
 	public static function string( s : Dynamic ) : String {
-		return untyped flash.Boot.__string_rec(s,"");
+		return flash.Boot.__string_rec(s,"");
 	}
 
 	public inline static function int( x : Float ) : Int {
@@ -56,6 +56,6 @@ import flash.Boot;
 	}
 
 	public static function random( x : Int ) : Int {
-		return untyped x <= 0 ? 0 : Math.floor(Math.random()*x);
+		return x <= 0 ? 0 : Math.floor(Math.random()*x);
 	}
 }