diff Applications/Generic/GuiAdapter.h @ 1297:6ab03e429f06 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Feb 2020 15:32:24 +0100
parents 7ec8fea061b9 7def6ab2929f
children 4f8c9065ee52
line wrap: on
line diff
--- a/Applications/Generic/GuiAdapter.h	Tue Feb 04 15:24:03 2020 +0100
+++ b/Applications/Generic/GuiAdapter.h	Sun Feb 23 15:32:24 2020 +0100
@@ -233,8 +233,6 @@
       instanceCount = 1;
     }
 
-    void RegisterWidget(boost::shared_ptr<IGuiAdapterWidget> widget);
-    
     /**
       emscripten_set_resize_callback("#window", NULL, false, OnWindowResize);
 
@@ -359,21 +357,5 @@
     deals with this)
     */
     void ViewportsUpdateSize();
-
-    std::vector<boost::weak_ptr<IGuiAdapterWidget> > widgets_;
-
-    template<typename F> void VisitWidgets(F func)
-    {
-      for (size_t i = 0; i < widgets_.size(); i++)
-      {
-        boost::shared_ptr<IGuiAdapterWidget> widget = widgets_[i].lock();
-
-        // TODO: we need to clean widgets!
-        if (widget.get() != NULL)
-        {
-          func(widget);
-        }
-      }
-    }
   };
 }