Browse Source

Remove some unused fields from the Library class.

pull/3/head
triton 12 years ago
parent
commit
35180f7e24
  1. 6
      src/Bridge/Library.cs
  2. 2
      src/Generator/Parser.cs

6
src/Bridge/Library.cs

@ -40,16 +40,12 @@ namespace CppSharp @@ -40,16 +40,12 @@ namespace CppSharp
/// </summary>
public class Library
{
public string Name;
public string SharedLibrary;
public List<TranslationUnit> TranslationUnits;
public List<NativeLibrary> Libraries;
public Dictionary<string, NativeLibrary> Symbols;
public Library(string name, string sharedLibrary)
public Library()
{
Name = name;
SharedLibrary = sharedLibrary;
TranslationUnits = new List<TranslationUnit>();
Libraries = new List<NativeLibrary>();
Symbols = new Dictionary<string, NativeLibrary>();

2
src/Generator/Parser.cs

@ -11,7 +11,7 @@ namespace CppSharp @@ -11,7 +11,7 @@ namespace CppSharp
public Parser(DriverOptions options)
{
this.options = options;
Library = new Library(options.OutputNamespace, options.LibraryName);
Library = new Library();
}
public bool ParseHeaders(IEnumerable<string> headers)

Loading…
Cancel
Save