From aff035be93db286655b31185641baaf848e210b8 Mon Sep 17 00:00:00 2001 From: Tom Spilman Date: Fri, 28 Jun 2013 13:56:06 -0500 Subject: [PATCH] Removed unnessasary unsafe in extern methods. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 5a8f2924..1091e04e 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1785,7 +1785,7 @@ namespace CppSharp.Generators.CSharp @params.Add("int " + GeneratedIdentifier("forBases")); } - WriteLine("public unsafe static extern {0} {1}({2});", retType, + WriteLine("public static extern {0} {1}({2});", retType, GetFunctionIdentifier(function), string.Join(", ", @params)); NeedNewLine();