Browse Source

Removed unused SymbolsContext from parser.

pull/123/head
triton 12 years ago
parent
commit
e984fb7305
  1. 7
      src/Core/Parser/Parser.cs
  2. 1
      src/Parser/Parser.cpp

7
src/Core/Parser/Parser.cs

@ -16,11 +16,6 @@ namespace CppSharp @@ -16,11 +16,6 @@ namespace CppSharp
/// </summary>
public ASTContext ASTContext { get; private set; }
/// <summary>
/// Context with library symbols.
/// </summary>
public SymbolContext SymbolsContext { get; private set; }
/// <summary>
/// Fired when source files are parsed.
/// </summary>
@ -34,7 +29,6 @@ namespace CppSharp @@ -34,7 +29,6 @@ namespace CppSharp
public ClangParser()
{
ASTContext = new ASTContext();
SymbolsContext = new SymbolContext();
}
/// <summary>
@ -68,7 +62,6 @@ namespace CppSharp @@ -68,7 +62,6 @@ namespace CppSharp
/// </summary>
public ParserResult ParseLibrary(string file, ParserOptions options)
{
options.SymbolsContext = SymbolsContext;
options.FileName = file;
var result = Parser.ClangParser.ParseLibrary(options);

1
src/Parser/Parser.cpp

@ -36,7 +36,6 @@ @@ -36,7 +36,6 @@
Parser::Parser(ParserOptions^ Opts)
: Opts(Opts)
, Lib(Opts->ASTContext)
, Symbols(Opts->SymbolsContext)
, Index(0)
{
}

Loading…
Cancel
Save