Skip to content

Commit

Permalink
Delete a custom pass added as standard
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dobrev <[email protected]>
  • Loading branch information
ddobrev committed Nov 4, 2019
1 parent f737ad6 commit c62f85b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 243 deletions.
9 changes: 1 addition & 8 deletions src/Generator/Generators/CLI/CLIGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ public override List<CodeGenerator> Generate(IEnumerable<TranslationUnit> units)
return outputs;
}

public override bool SetupPasses()
{
// Note: The ToString override will only work if this pass runs
// after the MoveOperatorToCallPass.
if (Context.Options.GenerateObjectOverrides)
Context.TranslationUnitPasses.AddPass(new ObjectOverridesPass(this));
return true;
}
public override bool SetupPasses() => true;

public static bool ShouldGenerateClassNativeField(Class @class)
{
Expand Down
227 changes: 0 additions & 227 deletions src/Generator/Passes/ObjectOverridesPass.cs

This file was deleted.

8 changes: 0 additions & 8 deletions tests/CLI/CLI.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ public void TestTypes()
Assert.That(sum, Is.EqualTo(7));
}

[Test]
public void TestToStringOverride()
{
var date = new Date(24, 12, 1924);
var s = date.ToString();
Assert.AreEqual("24/12/1924", s);
}

[Test]
public void TestStdString()
{
Expand Down

0 comments on commit c62f85b

Please sign in to comment.