Skip to content

Commit

Permalink
Remove specs for little-used callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Sep 4, 2017
1 parent e74ef8c commit 62a41fd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/smtp_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,13 @@ handle_MAIL(From, State) ->

%% @doc Handle an extension to the MAIL verb. Return either `{ok, State}' or `error' to reject
%% the option.
-spec handle_MAIL_extension(Extension :: binary(), State :: #state{}) -> {'ok', #state{}} | 'error'.
handle_MAIL_extension(Extension, _State) ->
io:format("Unknown MAIL FROM extension ~s~n", [Extension]),
error.

-spec handle_RCPT(To :: binary(), State :: #state{}) -> {'ok', #state{}} | {'error', string(), #state{}}.
handle_RCPT(_To, State) ->
{ok, State}.

-spec handle_RCPT_extension(Extension :: binary(), State :: #state{}) -> {'ok', #state{}} | 'error'.
handle_RCPT_extension(Extension, _State) ->
io:format("Unknown RCPT TO extension ~s~n", [Extension]),
error.
Expand Down Expand Up @@ -193,7 +190,6 @@ handle_RSET(State) ->
% reset any relevant internal state
State.

-spec handle_VRFY(Address :: binary(), State :: #state{}) -> {'ok', string(), #state{}} | {'error', string(), #state{}}.
handle_VRFY(_Address, State) ->
{error, "252 VRFY disabled by policy, just send some mail", State}.

Expand Down Expand Up @@ -228,10 +224,6 @@ handle_AUTH_user(Type, Password, _UserPassword, _State) ->
io:format("handle_AUTH error ~w ~w ~n", [Type, Password]),
error.

-spec handle_info(Info :: term(), State :: term()) ->
{noreply, NewState :: term()} |
{noreply, NewState :: term(), timeout() | hibernate} |
{stop, Reason :: term(), NewState :: term()}.
handle_info(_Info, State) ->
{noreply, State}.

Expand Down

0 comments on commit 62a41fd

Please sign in to comment.