1
0
Fork 0

Remove a lingering Boost usage

This commit is contained in:
James Turner 2021-02-19 16:28:35 +00:00
parent 67d235a17e
commit cab0dc12a1

View file

@ -18,8 +18,6 @@
#include "canvas_mgr.hxx" #include "canvas_mgr.hxx"
#include <boost/bind.hpp>
#include <Cockpit/od_gauge.hxx> #include <Cockpit/od_gauge.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include <Scripting/NasalModelData.hxx> #include <Scripting/NasalModelData.hxx>
@ -79,16 +77,12 @@ void CanvasMgr::init()
// add our two placement factories // add our two placement factories
sc::Canvas::addPlacementFactory sc::Canvas::addPlacementFactory
( (
"object", "object", [](SGPropertyNode* placement, sc::CanvasPtr canvas) {
boost::bind return FGODGauge::set_aircraft_texture(placement,
( canvas->getTexture(),
&FGODGauge::set_aircraft_texture, canvas->getCullCallback(),
_1, canvas);
boost::bind(&sc::Canvas::getTexture, _2), });
boost::bind(&sc::Canvas::getCullCallback, _2),
_2
)
);
sc::Canvas::addPlacementFactory("scenery-object", &addSceneObjectPlacement); sc::Canvas::addPlacementFactory("scenery-object", &addSceneObjectPlacement);
} }