summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webCgi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/p2webCgi.cpp')
-rw-r--r--project2/cgi/p2webCgi.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/project2/cgi/p2webCgi.cpp b/project2/cgi/p2webCgi.cpp
index a8b47e8..a4e2328 100644
--- a/project2/cgi/p2webCgi.cpp
+++ b/project2/cgi/p2webCgi.cpp
@@ -1,5 +1,4 @@
#include "cgiAppEngine.h"
-#include "optionsSource.h"
#include <boost/bind.hpp>
class GetEnv : public CgiEnvInput {
@@ -18,10 +17,7 @@ main(void)
Plugable::onAllComponents(boost::bind(&ComponentLoader::onBegin, _1));
CgiApplicationEngine app;
GetEnv ge;
- CgiRequestContext crc(NULL, ge);
- OptionsSource::loadSources(boost::bind(&CgiApplicationEngine::derivedPlatform, &crc));
- Plugable::onAllComponents(boost::bind(&ComponentLoader::onBefore, _1));
- app.process(std::cout, &crc);
+ app.process(std::cout, NULL, ge);
Plugable::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1));
Plugable::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1));
Plugable::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1));