lib/geocoder/results/base.rb in geocoder-0.9.10 vs lib/geocoder/results/base.rb in geocoder-0.9.11
- old
+ new
@@ -37,22 +37,8 @@
end
def country_code
fail
end
-
- def [](i)
- if i == 0
- warn "DEPRECATION WARNING: You called '[0]' on a Geocoder::Result object. Geocoder.search(...) now returns a single result instead of an array so this is no longer necessary. This warning will be removed and an error will result in geocoder 1.0."
- elsif i.is_a?(Fixnum)
- warn "DEPRECATION WARNING: You tried to access a Geocoder result but Geocoder.search(...) now returns a single result instead of an array. This warning will be removed and an error will result in geocoder 1.0."
- end
- self
- end
-
- def first
- warn "DEPRECATION WARNING: You called '.first' on a Geocoder::Result object. Geocoder.search(...) now returns a single result instead of an array so this is no longer necessary. This warning will be removed and an error will result in geocoder 1.0."
- self
- end
end
end
end