 __ = require "../../vendor/underscore"
 
 module.exports =
-  storeCountry: (line) ->
-
   storePopulatedPlace: (line) ->
     data = line.split("\t")
     id = data[0]

    state_id = data[10]
    population = data[14]
    country_iso = data[8]
  waiter: ->
    setTimeout((-> 
      console.log("jdsak")
      return false
    ),4000)
      
  importData: (filename, importfunction,callback) ->
    csv().fromPath filename,

      escape: ""
    .transform (data) ->
      importfunction data
    .on "end", (count) ->
      console.log "Number of lines: " + count
      callback(count)
    .on "error", (error) ->
      console.log error.message
  storeCountryAndAdminDivision: (countrycode = "DE",callback = ->) ->
    redis.set countrycode, "foo"
    importfunction = (data) ->
      doo = "DE"+":"+data[1]
      redis.set doo, "foo"
    @importData("./spec/fixtures/admin1CodesASCII.txt", importfunction, callback)
