Mercurial > projects > dynamin
changeset 73:68be24186634
Remove warning when Application.run is not called,
since I can't use a static ~this (circular dep error)
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Wed, 12 Aug 2009 05:14:04 -0500 |
parents | 8dac206ea523 |
children | 7adc733aca2d |
files | dynamin/gui/window.d |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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;