aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2017-02-04 15:31:14 +0100
committerRichard Carlsson <[email protected]>2017-02-08 13:07:42 +0100
commit1d886081027c4d4fcfbf7f73d4708694cad582f5 (patch)
tree804393c43aa36c5afcfd26ee949a6e54cfe04e26 /lib/stdlib/src
parente381a8a0334b9a1556b9a7e97205734261e39ffa (diff)
downloadotp-1d886081027c4d4fcfbf7f73d4708694cad582f5.tar.gz
otp-1d886081027c4d4fcfbf7f73d4708694cad582f5.tar.bz2
otp-1d886081027c4d4fcfbf7f73d4708694cad582f5.zip
Deprecate filename:find_src/1/2
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/filename.erl3
-rw-r--r--lib/stdlib/src/otp_internal.erl7
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl
index 0ff22f876a..2a2f25dcd2 100644
--- a/lib/stdlib/src/filename.erl
+++ b/lib/stdlib/src/filename.erl
@@ -19,6 +19,9 @@
%%
-module(filename).
+-deprecated({find_src,1,next_major_release}).
+-deprecated({find_src,2,next_major_release}).
+
%% Purpose: Provides generic manipulation of filenames.
%%
%% Generally, these functions accept filenames in the native format
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 5bf77a5160..2a0e3118d0 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -550,6 +550,13 @@ obsolete_1(overload, _, _) ->
obsolete_1(rpc, safe_multi_server_call, A) when A =:= 2; A =:= 3 ->
{removed, {rpc, multi_server_call, A}};
+%% Added in OTP 20.
+
+obsolete_1(filename, find_src, 1) ->
+ {deprecated, "deprecated; use filelib:find_source/1 instead"};
+obsolete_1(filename, find_src, 2) ->
+ {deprecated, "deprecated; use filelib:find_source/3 instead"};
+
%% Removed in OTP 20.
obsolete_1(erlang, hash, 2) ->