From 0ebc8a64a51ff4255c931c23039e7485cbaee08a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 11 Nov 2015 17:54:08 +0100 Subject: Cleanup --- src/pbx_status.erl | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'src/pbx_status.erl') diff --git a/src/pbx_status.erl b/src/pbx_status.erl index 0b90a94..74a60af 100644 --- a/src/pbx_status.erl +++ b/src/pbx_status.erl @@ -1,8 +1,4 @@ -module(pbx_status). --behaviour(gen_event). - --export([init/1, handle_event/2, handle_call/2, handle_info/2, - terminate/2, code_change/3]). -export([decode/1, encode/0, value/1]). @@ -15,27 +11,4 @@ encode() -> 'CSTA-system-status':encode('SystemStatusRes', {noData, []}). value({ok, #'SystemStatusArg'{systemStatus = Status}}) -> - Status; - -value(Data) -> - value(decode(Data)). - -%%% - -init(_Args) -> - {ok, []}. - -handle_event(_Event, State) -> - {ok, State}. - -handle_call(_Request, State) -> - {ok, ok, State}. - -handle_info(_Info, State) -> - {ok, State}. - -terminate(_Reason, _State) -> - ok. - -code_change(_OldVsn, State, _Extra) -> - {ok, State}. + Status. -- cgit v1.2.3