2007-09-19 Mike Kestner <mkestner@novell.com>

* generator/InterfaceGen.cs: remove some dead code from a previous
	implementation attempt.

svn path=/trunk/gtk-sharp/; revision=86027
This commit is contained in:
Mike Kestner 2007-09-19 18:22:22 +00:00
parent 74458aa03a
commit e18e0b7995
2 changed files with 5 additions and 42 deletions

View file

@ -1,3 +1,8 @@
2007-09-19 Mike Kestner <mkestner@novell.com>
* generator/InterfaceGen.cs: remove some dead code from a previous
implementation attempt.
2007-09-19 Mike Kestner <mkestner@novell.com>
* generator/VirtualMethod.cs: refactor delegate generation into

View file

@ -237,48 +237,6 @@ namespace GtkSharp.Generation {
}
}
void GenerateInterface (GenerationInfo gen_info)
{
StreamWriter sw = gen_info.Writer = gen_info.OpenStream (Name);
sw.WriteLine ("namespace " + NS + " {");
sw.WriteLine ();
sw.WriteLine ("\tusing System;");
sw.WriteLine ();
sw.WriteLine ("#region Autogenerated code");
sw.WriteLine ("\tpublic interface " + Name + " : GLib.GInterface {");
GenSignals (gen_info);
GenMethodDecls (sw, GenVMDecls (sw));
AppendCustom (sw, gen_info.CustomDir);
sw.WriteLine ("\t}");
sw.WriteLine ("#endregion");
sw.WriteLine ("}");
sw.Close ();
gen_info.Writer = null;
Statistics.IFaceCount++;
}
#if false
public void GenerateNotQuiteReadyYet (GenerationInfo gen_info)
{
ArrayList tmp = new ArrayList ();
foreach (VirtualMethod vm in vms) {
if (vm.IsValid)
tmp.Add (vm);
else {
members.Remove (vm);
Console.WriteLine ("of interface " + QualifiedName);
}
}
vms = tmp;
GenerateAdapter (gen_info);
GenerateInterface (gen_info);
}
#endif
public override void Generate (GenerationInfo gen_info)
{
GenerateAdapter (gen_info);