Skip to content

Commit c62f85b

Browse files
committed
Delete a custom pass added as standard
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent f737ad6 commit c62f85b

File tree

3 files changed

+1
-243
lines changed

3 files changed

+1
-243
lines changed

src/Generator/Generators/CLI/CLIGenerator.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ public override List<CodeGenerator> Generate(IEnumerable<TranslationUnit> units)
2929
return outputs;
3030
}
3131

32-
public override bool SetupPasses()
33-
{
34-
// Note: The ToString override will only work if this pass runs
35-
// after the MoveOperatorToCallPass.
36-
if (Context.Options.GenerateObjectOverrides)
37-
Context.TranslationUnitPasses.AddPass(new ObjectOverridesPass(this));
38-
return true;
39-
}
32+
public override bool SetupPasses() => true;
4033

4134
public static bool ShouldGenerateClassNativeField(Class @class)
4235
{

src/Generator/Passes/ObjectOverridesPass.cs

Lines changed: 0 additions & 227 deletions
This file was deleted.

tests/CLI/CLI.Tests.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ public void TestTypes()
1212
Assert.That(sum, Is.EqualTo(7));
1313
}
1414

15-
[Test]
16-
public void TestToStringOverride()
17-
{
18-
var date = new Date(24, 12, 1924);
19-
var s = date.ToString();
20-
Assert.AreEqual("24/12/1924", s);
21-
}
22-
2315
[Test]
2416
public void TestStdString()
2517
{

0 commit comments

Comments
 (0)