From 34d989301836105e3aaf06c0299e29584c112fa8 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Wed, 12 Oct 2016 12:14:10 -0400 Subject: [PATCH] removed unused parameter --- helper/geojsonify.js | 6 +++--- test/unit/helper/geojsonify.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helper/geojsonify.js b/helper/geojsonify.js index 99d148dd..ce431d12 100644 --- a/helper/geojsonify.js +++ b/helper/geojsonify.js @@ -7,11 +7,11 @@ var _ = require('lodash'); var addDetails = require('./geojsonify_place_details'); var addMetaData = require('./geojsonify_meta_data'); -function geojsonifyPlaces( params, docs, labelGenerator ){ +function geojsonifyPlaces( params, docs ){ // flatten & expand data for geojson conversion var geodata = docs - .map(geojsonifyPlace.bind(null, params, labelGenerator)) + .map(geojsonifyPlace.bind(null, params)) .filter( function( doc ){ return !!doc; }); @@ -34,7 +34,7 @@ function geojsonifyPlaces( params, docs, labelGenerator ){ return geojson; } -function geojsonifyPlace(params, labelGenerator, place) { +function geojsonifyPlace(params, place) { // something went very wrong if( !place || !place.hasOwnProperty( 'center_point' ) ) { diff --git a/test/unit/helper/geojsonify.js b/test/unit/helper/geojsonify.js index 22e65b75..809b1ae9 100644 --- a/test/unit/helper/geojsonify.js +++ b/test/unit/helper/geojsonify.js @@ -6,7 +6,7 @@ module.exports.tests = {}; module.exports.tests.interface = function(test, common) { test('valid interface', function(t) { t.equal(typeof geojsonify, 'function', 'geojsonify is a function'); - t.equal(geojsonify.length, 3, 'accepts x arguments'); + t.equal(geojsonify.length, 2, 'accepts x arguments'); t.end(); }); };