Skip to content

Commit 236455c

Browse files
Remove legacy methods
1 parent a58748c commit 236455c

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

lib/split/encapsulated_helper.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Split's helper exposes all kinds of methods we don't want to
33
# mix into our model classes.
44
#
5-
# This module exposes only two methods
6-
# - ab_test and
7-
# - ab_test_finished
5+
# This module exposes only two methods:
6+
# - ab_test()
7+
# - finished()
88
# that can safely be mixed into any class.
99
#
1010
# Passes the instance of the class that it's mixed into to the
@@ -43,10 +43,6 @@ def ab_test(*arguments)
4343
end
4444
end
4545

46-
def ab_test_finished(*arguments)
47-
split_context_shim.finished *arguments
48-
end
49-
5046
private
5147

5248
# instantiate and memoize a context shim in case of multiple ab_test* calls

lib/split/helper.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ def split_generically_disabled?
8686
defined?(params) && params['SPLIT_DISABLE']
8787
end
8888

89-
def begin_experiment(experiment, alternative_name = nil)
90-
alternative_name ||= experiment.control.name
91-
ab_user[experiment.key] = alternative_name
92-
alternative_name
93-
end
94-
9589
def ab_user
9690
@ab_user ||= User.new(self)
9791
end

0 commit comments

Comments
 (0)