Skip to content

Commit 3a99ab9

Browse files
authored
remove deprecation code (#171)
1 parent 85e332d commit 3a99ab9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Read `release_notes.md` for commit level details.
1010
### Bug fixes
1111

1212
### Deprecations
13+
- `:offset_x` and `:offset_y` in `TouchAction#swipe` is deprecated in favor of `:end_x` and `:end_y`
14+
1315

1416
## [2.1.1] - 2018-11-23
1517
### Enhancements

lib/appium_lib_core/common/touch_action/touch_actions.rb

-9
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ def swipe(opts)
142142
end_x = opts.fetch :end_x, 0
143143
end_y = opts.fetch :end_y, 0
144144

145-
if opts[:offset_x]
146-
::Appium::Logger.warn('[DEPRECATED] :offset_x was renamed to :end_x to indicate as an absolute point.')
147-
end_x = opts.fetch :offset_x, 0
148-
end
149-
if opts[:offset_y]
150-
::Appium::Logger.warn('[DEPRECATED] :offset_y was renamed to :end_y to indicate as an absolute point.')
151-
end_y = opts.fetch :offset_y, 0
152-
end
153-
154145
duration = opts.fetch :duration, 200
155146

156147
press x: start_x, y: start_y

0 commit comments

Comments
 (0)