From e835d5086a7dd683609bfb60b992da865640ab53 Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 12 Dec 2013 20:40:25 +0000 Subject: [PATCH] Remove useless code. --- src/Generator/Generators/CLI/CLIHeadersTemplate.cs | 8 -------- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs index 3420f6eb..3e2b16a6 100644 --- a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs +++ b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs @@ -607,14 +607,6 @@ namespace CppSharp.Generators.CLI return true; } - else if (typedef.Type.IsEnumType()) - { - // Already handled in the parser. - } - else - { - Log.Debug("Unresolved typedef type: {0}", typedef); - } return false; } diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index f68a6a27..a7bc4ab4 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2285,16 +2285,6 @@ namespace CppSharp.Generators.CSharp TypePrinter.PopContext(); PopBlock(NewLineKind.BeforeNextBlock); } - else if (typedef.Type.IsEnumType()) - { - // Already handled in the parser. - return false; - } - else - { - Log.Debug("Unresolved typedef type: {0}", typedef); - return false; - } return true; }