Skip to content

Commit 36cf51b

Browse files
committed
Removed no longer needed hacks while setting up.
1 parent 887a8c3 commit 36cf51b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

QtSharp/QtSharp.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,7 @@ public void Preprocess(Driver driver, ASTContext lib)
3535
{
3636
foreach (var unit in lib.TranslationUnits.Where(u => u.IsValid))
3737
{
38-
// HACK: work around https://github.com/mono/CppSharp/issues/677
39-
if (unit.FileName == "locale_classes.tcc" || unit.FileName == "locale_facets.tcc")
40-
{
41-
unit.ExplicitlyIgnore();
42-
}
43-
else
44-
{
45-
IgnorePrivateDeclarations(unit);
46-
}
38+
IgnorePrivateDeclarations(unit);
4739
}
4840

4941
// QString is type-mapped to string so we only need two methods for the conversion
@@ -240,9 +232,6 @@ public void Setup(Driver driver)
240232
module.CodeFiles.Add(Path.Combine(dir, "QChar.cs"));
241233
module.CodeFiles.Add(Path.Combine(dir, "QEvent.cs"));
242234
}
243-
var moduleInitializer = Path.GetTempFileName();
244-
File.WriteAllText(moduleInitializer, "internal class ModuleInitializer { internal static void Run() {} }");
245-
module.CodeFiles.Add(moduleInitializer);
246235

247236
driver.Options.Modules.Add(module);
248237
}

0 commit comments

Comments
 (0)