Skip to content

Commit

Permalink
Removed no longer needed hacks while setting up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrev committed Feb 5, 2017
1 parent 887a8c3 commit 36cf51b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions QtSharp/QtSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 36cf51b

Please sign in to comment.