aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 14:56:43 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commit831259a3dfe8e4def7257df148516ed9f14f8cf8 (patch)
tree3b8dfbec7b6ec522b6bc5c3b97cd85ea2f953a0b /lib/stdlib/src
parentac193e9fa75d1d6ef1d24b077fcc31934842ccfb (diff)
downloadotp-831259a3dfe8e4def7257df148516ed9f14f8cf8.tar.gz
otp-831259a3dfe8e4def7257df148516ed9f14f8cf8.tar.bz2
otp-831259a3dfe8e4def7257df148516ed9f14f8cf8.zip
Remove lib:progname/0
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/lib.erl14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/stdlib/src/lib.erl b/lib/stdlib/src/lib.erl
index a115836411..5146c13361 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -19,7 +19,7 @@
%%
-module(lib).
--export([progname/0, eval_str/1]).
+-export([eval_str/1]).
-export([extended_parse_exprs/1, extended_parse_term/1,
subst_values_for_vars/2]).
@@ -28,18 +28,6 @@
format_stacktrace/4, format_stacktrace/5,
format_call/4, format_call/5, format_fun/1, format_fun/2]).
-%% Return the name of the script that starts (this) erlang
-%%
--spec progname() -> atom().
-
-progname() ->
- case init:get_argument(progname) of
- {ok, [[Prog]]} ->
- list_to_atom(Prog);
- _Other ->
- no_prog_name
- end.
-
%% eval_str(InStr) -> {ok, OutStr} | {error, ErrStr'}
%% InStr must represent a body
%% Note: If InStr is a binary it has to be a Latin-1 string.