Browse Source

Code cleanups, no functional changes intended.

pull/329/head
triton 11 years ago
parent
commit
934558ed54
  1. 4
      src/AST/Comment.cs
  2. 5
      src/AST/Type.cs
  3. 2
      src/Core/Parser/Parser.cs
  4. 1
      src/CppParser/Parser.cpp
  5. 2
      src/Generator/Generators/CLI/CLITextTemplate.cs

4
src/AST/Comment.cs

@ -103,10 +103,6 @@ namespace CppSharp.AST @@ -103,10 +103,6 @@ namespace CppSharp.AST
/// </summary>
public abstract class Comment
{
protected Comment()
{
}
public abstract void Visit<T>(ICommentVisitor<T> visitor);
}

5
src/AST/Type.cs

@ -365,11 +365,6 @@ namespace CppSharp.AST @@ -365,11 +365,6 @@ namespace CppSharp.AST
/// </summary>
public class DecayedType : Type
{
public DecayedType()
{
}
public QualifiedType Decayed;
public QualifiedType Original;
public QualifiedType Pointee;

2
src/Core/Parser/Parser.cs

@ -1,6 +1,4 @@ @@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using CppSharp.AST;
using CppSharp.Parser;
using ASTContext = CppSharp.Parser.AST.ASTContext;
using NativeLibrary = CppSharp.Parser.AST.NativeLibrary;

1
src/CppParser/Parser.cpp

@ -1736,7 +1736,6 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, @@ -1736,7 +1736,6 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL,
if (FTL)
{
auto PVD = FTL.getParam(i);
HandleDeclaration(PVD, FA);
auto PTL = PVD->getTypeSourceInfo()->getTypeLoc();

2
src/Generator/Generators/CLI/CLITextTemplate.cs

@ -81,9 +81,7 @@ namespace CppSharp.Generators.CLI @@ -81,9 +81,7 @@ namespace CppSharp.Generators.CLI
public string QualifiedIdentifier(Declaration decl)
{
if (Options.GenerateLibraryNamespace)
{
if (string.IsNullOrEmpty(decl.QualifiedName))
return string.Format("{0}", Options.OutputNamespace);

Loading…
Cancel
Save