Browse Source

Removed all warnings in the C# part.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/816/head
Dimitar Dobrev 8 years ago
parent
commit
5f6c432f19
  1. 1
      src/Generator/Generators/CSharp/CSharpSources.cs
  2. 1
      src/Generator/Passes/GenerateSymbolsPass.cs
  3. 3
      src/Generator/Passes/RenamePass.cs

1
src/Generator/Generators/CSharp/CSharpSources.cs

@ -972,7 +972,6 @@ namespace CppSharp.Generators.CSharp @@ -972,7 +972,6 @@ namespace CppSharp.Generators.CSharp
if (decl is Function)
{
var function = decl as Function;
if (isAbstract)
{
Write(";");

1
src/Generator/Passes/GenerateSymbolsPass.cs

@ -47,7 +47,6 @@ namespace CppSharp.Passes @@ -47,7 +47,6 @@ namespace CppSharp.Passes
where symbolsCodeGenerators.ContainsKey(module)
select module).ToList();
remainingCompilationTasks = modules.Count;
var cppTypePrinter = new CppTypePrinter { PrintScopeKind = TypePrintScopeKind.Qualified };
foreach (var module in modules.Where(symbolsCodeGenerators.ContainsKey))
{
var symbolsCodeGenerator = symbolsCodeGenerators[module];

3
src/Generator/Passes/RenamePass.cs

@ -142,8 +142,7 @@ namespace CppSharp.Passes @@ -142,8 +142,7 @@ namespace CppSharp.Passes
if (decl.Name == null)
return true;
var renamed = Rename(decl);
return true;
return Rename(decl);
}
private bool Rename(Declaration decl)

Loading…
Cancel
Save