Permalink
Browse files

Remove aliases.

  • Loading branch information...
1 parent aaa01f9 commit 478956ca4307e40eef6d57ca68851e7968ae4763 @wvanbergen wvanbergen committed Feb 10, 2014
Showing with 0 additions and 14 deletions.
  1. +0 −4 lib/statsd/instrument.rb
  2. +0 −10 test/statsd_test.rb
@@ -147,8 +147,6 @@ def measure(key, value = nil, *metric_options)
result
end
- alias_method :timer, :measure
-
# gorets:1|c
def increment(key, value = 1, *metric_options)
if value.is_a?(Hash) && metric_options.empty?
@@ -159,8 +157,6 @@ def increment(key, value = 1, *metric_options)
collect(:c, key, value, hash_argument(metric_options))
end
- alias_method :counter, :increment
-
# gaugor:333|g
# guagor:1234|kv|@1339864935 (statsite)
def gauge(key, value, *metric_options)
View
@@ -41,11 +41,6 @@ def test_statsd_measure_with_benchmarked_value_and_options
end
end
- def test_statsd_timer_as_alias_for_measure
- StatsD.expects(:collect).with(:ms, 'values.foobar', 42, {})
- StatsD.timer('values.foobar', 42)
- end
-
def test_statsd_increment_with_hash_argument
StatsD.expects(:collect).with(:c, 'values.foobar', 1, :tags => ['test'])
StatsD.increment('values.foobar', :tags => ['test'])
@@ -56,11 +51,6 @@ def test_statsd_increment_with_multiple_arguments
StatsD.increment('values.foobar', 12, nil, ['test'])
end
- def test_statsd_counter_as_alias_for_increment
- StatsD.expects(:collect).with(:c, 'values.foobar', 12, :sample_rate => nil, :tags => ['test'])
- StatsD.counter('values.foobar', 12, nil, ['test'])
- end
-
def test_statsd_gauge
StatsD.expects(:collect).with(:g, 'values.foobar', 12, {})
StatsD.gauge('values.foobar', 12)

0 comments on commit 478956c

Please sign in to comment.