From 36cf51be20e26f53021fe281c96f89a4df8c9c0d Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 5 Feb 2017 03:05:31 +0200 Subject: [PATCH] Removed no longer needed hacks while setting up. --- QtSharp/QtSharp.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/QtSharp/QtSharp.cs b/QtSharp/QtSharp.cs index 60510a1a..0b9515ac 100644 --- a/QtSharp/QtSharp.cs +++ b/QtSharp/QtSharp.cs @@ -35,15 +35,7 @@ public void Preprocess(Driver driver, ASTContext lib) { foreach (var unit in lib.TranslationUnits.Where(u => u.IsValid)) { - // HACK: work around https://github.com/mono/CppSharp/issues/677 - if (unit.FileName == "locale_classes.tcc" || unit.FileName == "locale_facets.tcc") - { - unit.ExplicitlyIgnore(); - } - else - { - IgnorePrivateDeclarations(unit); - } + IgnorePrivateDeclarations(unit); } // QString is type-mapped to string so we only need two methods for the conversion @@ -240,9 +232,6 @@ public void Setup(Driver driver) module.CodeFiles.Add(Path.Combine(dir, "QChar.cs")); module.CodeFiles.Add(Path.Combine(dir, "QEvent.cs")); } - var moduleInitializer = Path.GetTempFileName(); - File.WriteAllText(moduleInitializer, "internal class ModuleInitializer { internal static void Run() {} }"); - module.CodeFiles.Add(moduleInitializer); driver.Options.Modules.Add(module); }