diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs index 287bae3f..7e5ee11e 100644 --- a/Source/Bind/Structures/Delegate.cs +++ b/Source/Bind/Structures/Delegate.cs @@ -23,7 +23,6 @@ namespace Bind.Structures { //internal static DelegateCollection Delegates; - private static bool delegatesLoaded; bool? cls_compliance_overriden; protected static Regex endings = new Regex(@"((((d|f|fi)|u?[isb])_?v?)|v)", RegexOptions.Compiled | RegexOptions.RightToLeft); @@ -34,34 +33,6 @@ namespace Bind.Structures // The default Regex matches no functions. Create a new Regex in Bind.Generator classes to override the default behavior. internal static Regex endingsAddV = new Regex("^0", RegexOptions.Compiled); - - #region internal static void Initialize(string glSpec, string glSpecExt) - - internal static DelegateCollection Initialize(string glSpec, string glSpecExt) - { - DelegateCollection delegates = new DelegateCollection(); - using (StreamReader sr = Utilities.OpenSpecFile(Settings.InputPath, glSpec)) - { - delegates = MainClass.Generator.ReadDelegates(sr); - } - - if (!String.IsNullOrEmpty(glSpecExt)) - { - using (StreamReader sr = Utilities.OpenSpecFile(Settings.InputPath, glSpecExt)) - { - foreach (Delegate d in MainClass.Generator.ReadDelegates(sr).Values) - { - Utilities.Merge(delegates, d); - } - } - } - delegatesLoaded = true; - - return delegates; - } - - #endregion - #region --- Constructors --- public Delegate() diff --git a/Source/Bind/Structures/Enum.cs b/Source/Bind/Structures/Enum.cs index 33d2c314..09d41fd7 100644 --- a/Source/Bind/Structures/Enum.cs +++ b/Source/Bind/Structures/Enum.cs @@ -19,7 +19,6 @@ namespace Bind.Structures { static StringBuilder translator = new StringBuilder(); string _name, _type; - static bool enumsLoaded; // Returns true if the enum contains a collection of flags, i.e. 1, 2, 4, 8, ... public bool IsFlagCollection diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs index bade2520..9516df44 100644 --- a/Source/Bind/Structures/Function.cs +++ b/Source/Bind/Structures/Function.cs @@ -16,7 +16,6 @@ namespace Bind.Structures #region Fields Delegate wrapped_delegate; - int index; #endregion