From caeaf920d78c232c6f05988de56e5f7623991940 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 29 Apr 2011 20:04:36 +0000 Subject: [PATCH] remove used variable --- plugins/input/templates/helloworld/hello_featureset.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/input/templates/helloworld/hello_featureset.cpp b/plugins/input/templates/helloworld/hello_featureset.cpp index 5a4264181..b9891c1ff 100644 --- a/plugins/input/templates/helloworld/hello_featureset.cpp +++ b/plugins/input/templates/helloworld/hello_featureset.cpp @@ -14,6 +14,8 @@ mapnik::feature_ptr hello_featureset::next() { // create a new feature mapnik::feature_ptr feature(new mapnik::Feature(feature_id_)); + + // increment the count so that we only return one feature ++feature_id_; // create an attribute pair of key:value @@ -46,9 +48,6 @@ mapnik::feature_ptr hello_featureset::next() line->line_to(box_.minx(),box_.miny()); feature->add_geometry(line); - // increment the count so that we only return one feature - ++count_; - // return the feature! return feature; }