Permalink
Browse files

bind arg is going away in mapnik soon (mapnik/mapnik#962) so remove i…

…t - also closes #124
  • Loading branch information...
1 parent da53440 commit c86f3903e3a688eeff28f2e6a2c1e9d911caf90f Dane Springmeyer committed Oct 8, 2012
Showing with 2 additions and 15 deletions.
  1. +2 −15 src/mapnik_datasource.cpp
@@ -76,19 +76,6 @@ Handle<Value> Datasource::New(const Arguments& args)
Local<Object> options = args[0]->ToObject();
- // TODO - maybe validate in js?
-
- bool bind=true;
- if (options->Has(String::New("bind")))
- {
- Local<Value> bind_opt = options->Get(String::New("bind"));
- if (!bind_opt->IsBoolean())
- return ThrowException(Exception::TypeError(
- String::New("'bind' must be a Boolean")));
-
- bind = bind_opt->BooleanValue();
- }
-
mapnik::parameters params;
Local<Array> names = options->GetPropertyNames();
uint32_t i = 0;
@@ -105,9 +92,9 @@ Handle<Value> Datasource::New(const Arguments& args)
try
{
#if MAPNIK_VERSION >= 200200
- ds = mapnik::datasource_cache::instance().create(params, bind);
+ ds = mapnik::datasource_cache::instance().create(params);
#else
- ds = mapnik::datasource_cache::instance()->create(params, bind);
+ ds = mapnik::datasource_cache::instance()->create(params);
#endif
}
catch (std::exception const& ex)

0 comments on commit c86f390

Please sign in to comment.