Browse Source

[std] remove special #if display cases

see #10805
Simon Krajewski 2 years ago
parent
commit
389cb4706a

+ 1 - 1
std/haxe/macro/ComplexTypeTools.hx

@@ -39,7 +39,7 @@ class ComplexTypeTools {
 	static public function toString(c:ComplexType):String
 		return new Printer().printComplexType(c);
 
-	#if (macro || display)
+	#if macro
 	/**
 		Returns a type corresponding to `c`.
 

+ 1 - 1
std/haxe/macro/MacroStringTools.hx

@@ -32,7 +32,7 @@ import haxe.macro.Expr;
 @:hlNative("macro")
 #end
 class MacroStringTools {
-	#if (macro || display)
+	#if macro
 	/**
 		Formats `String` `s` using the usual interpolation rules.
 

+ 1 - 1
std/haxe/macro/PositionTools.hx

@@ -60,7 +60,7 @@ class PositionTools {
 		#end
 	}
 
-	#if (macro || display)
+	#if macro
 	/**
 		Converts a `haxe.macro.Position` to a `haxe.display.Position.Location`.
 

+ 1 - 1
std/haxe/macro/TypeTools.hx

@@ -162,7 +162,7 @@ class TypeTools {
 			}
 		}
 
-	#if (macro || display)
+	#if macro
 	/**
 		Follows all typedefs of `t` to reach the actual type.
 

+ 1 - 1
std/haxe/macro/TypedExprTools.hx

@@ -167,7 +167,7 @@ class TypedExprTools {
 		}
 	}
 
-	#if (macro || display)
+	#if macro
 	static public function toString(t:TypedExpr, ?pretty = false):String {
 		return @:privateAccess haxe.macro.Context.sExpr(t, pretty);
 	}