# HG changeset patch # User Jordan Miner # Date 1250072044 18000 # Node ID 68be24186634a6e8ce455dfa4f654aca468ff4a8 # Parent 8dac206ea523913741f0030279c5e9ea575473f6 Remove warning when Application.run is not called, since I can't use a static ~this (circular dep error) diff -r 8dac206ea523 -r 68be24186634 dynamin/gui/window.d --- a/dynamin/gui/window.d Tue Aug 11 01:45:42 2009 -0500 +++ b/dynamin/gui/window.d Wed Aug 12 05:14:04 2009 -0500 @@ -46,8 +46,6 @@ package Thread eventThread; /// Starts event processing. Must be called from main(). void run(Window w = null) { - Window.hasProcessedEvents = true; - auto thread = Thread.getThis(); assert(eventThread is null || eventThread is thread, "Application.run called from two different threads"); @@ -164,13 +162,6 @@ * $(IMAGE ../web/example_window.png) */ class Window : Container { - private static hasProcessedEvents = false; - ~this() { // this should be a static ~this, but I get a circular dep error - if(!hasProcessedEvents) { - Stdout("Warning: a window was created, but Application.run"); - Stdout(" was not called to process events").newline; - } - } protected: mixin WindowBackend; bool _visible;