diff options
author | Loïc Hoguin <[email protected]> | 2012-08-27 12:46:42 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-08-27 12:50:00 +0200 |
commit | cc2e084d456c99b3d71f09c08f516195b6015dae (patch) | |
tree | 7fafcb37fe43e06c80032fd52c238f460c93d9ad /src/cowboy_clock.erl | |
parent | 10adcdbc7dce733fa300fffdd11ce24ae7c17e38 (diff) | |
download | cowboy-cc2e084d456c99b3d71f09c08f516195b6015dae.tar.gz cowboy-cc2e084d456c99b3d71f09c08f516195b6015dae.tar.bz2 cowboy-cc2e084d456c99b3d71f09c08f516195b6015dae.zip |
Update behaviours for R15B+
This effectively drops the R14B compatibility.
The cowboy_req:req() type will be introduced in a future commit.
It refers to the #http_req{} record.
Diffstat (limited to 'src/cowboy_clock.erl')
-rw-r--r-- | src/cowboy_clock.erl | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cowboy_clock.erl b/src/cowboy_clock.erl index d8d220e..e29b640 100644 --- a/src/cowboy_clock.erl +++ b/src/cowboy_clock.erl @@ -107,7 +107,6 @@ rfc2109(LocalTime) -> %% gen_server. %% @private --spec init([]) -> {ok, #state{}}. init([]) -> ?TABLE = ets:new(?TABLE, [set, protected, named_table, {read_concurrency, true}]), @@ -118,8 +117,6 @@ init([]) -> {ok, #state{universaltime=T, rfc1123=B, tref=TRef}}. %% @private --spec handle_call(_, _, State) - -> {reply, ignored, State} | {stop, normal, stopped, State}. handle_call(stop, _From, State=#state{tref=TRef}) -> {ok, cancel} = timer:cancel(TRef), {stop, normal, stopped, State}; @@ -127,12 +124,10 @@ handle_call(_Request, _From, State) -> {reply, ignored, State}. %% @private --spec handle_cast(_, State) -> {noreply, State}. handle_cast(_Msg, State) -> {noreply, State}. %% @private --spec handle_info(_, State) -> {noreply, State}. handle_info(update, #state{universaltime=Prev, rfc1123=B1, tref=TRef}) -> T = erlang:universaltime(), B2 = update_rfc1123(B1, Prev, T), @@ -142,12 +137,10 @@ handle_info(_Info, State) -> {noreply, State}. %% @private --spec terminate(_, _) -> ok. terminate(_Reason, _State) -> ok. %% @private --spec code_change(_, State, _) -> {ok, State}. code_change(_OldVsn, State, _Extra) -> {ok, State}. |