Просмотр исходного кода

[cs] remove some @:keep, and add some inlines to cs.Lib

Dan Korostelev 9 лет назад
Родитель
Сommit
606b5c4291
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      std/cs/Lib.hx

+ 4 - 4
std/cs/Lib.hx

@@ -28,13 +28,13 @@ import cs.system.Type;
 **/
 class Lib
 {
-	@:keep private static var decimalSeparator:String;
+	private static var decimalSeparator:String;
 
 	/**
 		Changes the current culture settings to allow a consistent cross-target behavior.
 		Currently the only change made is in regard to the decimal separator, which is always set to "."
 	**/
-	@:keep public static function applyCultureChanges():Void
+	public static function applyCultureChanges():Void
 	{
 		var ci = new cs.system.globalization.CultureInfo(cs.system.threading.Thread.CurrentThread.CurrentCulture.Name, true);
 		decimalSeparator = ci.NumberFormat.NumberDecimalSeparator;
@@ -124,7 +124,7 @@ class Lib
 		[deprecated] - use `getNativeType` instead
 	**/
 	@:deprecated('The function `nativeType` is deprecated and will be removed in later versions. Please use `getNativeType` instead')
-	public static function nativeType(obj:Dynamic):Type
+	public static inline function nativeType(obj:Dynamic):Type
 	{
 		return untyped obj.GetType();
 	}
@@ -132,7 +132,7 @@ class Lib
 	/**
 		Gets the native System.Type from the supplied object. Will throw an exception in case of null being passed.
 	**/
-	public static function getNativeType(obj:Dynamic):Type
+	public static inline function getNativeType(obj:Dynamic):Type
 	{
 		return untyped obj.GetType();
 	}