Skip to content

Commit 4bb4206

Browse files
committed
Remove some old, backwards-compat code that was warning
1 parent c5d770e commit 4bb4206

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/watcher.ex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,8 @@ defmodule Watcher do
3636
end
3737
end
3838

39-
# Elixir 1.7 deprecates Code.load_file in favor of Code.compile_file. In
40-
# order to avoid the depecation warnings while maintaining backwards
41-
# compatibility, we check the sytem version and execute conditionally.
4239
defp portable_load_file(file) do
43-
if Version.match?(System.version(), "~> 1.7") do
44-
Code.compile_file(file)
45-
else
46-
Code.load_file(file)
47-
end
40+
Code.compile_file(file)
4841
end
4942

5043
defp normalize(file) do

0 commit comments

Comments
 (0)