Grouping unused gen_server callbacks.
[cellular-automata.git] / 001 / src / life_time.erl
index e2ee30e..22d3300 100644 (file)
@@ -51,6 +51,16 @@ report_state(CellID, GenID, CellState) ->
     gen_server:cast(?MODULE, {report_state, {CellID, GenID, CellState}}).
 
 
+%% ============================================================================
+%% Callbacks (unused)
+%% ============================================================================
+
+handle_call(_Msg, _From, State)  -> {reply, ok, State}.
+handle_info(_Msg, State)         -> {noreply, State}.
+code_change(_Old, State, _Other) -> {ok, State}.
+terminate(_Reason, State)        -> {ok, State}.
+
+
 %% ============================================================================
 %% Callbacks
 %% ============================================================================
@@ -68,18 +78,6 @@ init([X, Y, Cells]) ->
     {ok, State}.
 
 
-terminate(_Reason, State) ->
-    {ok, State}.
-
-
-code_change(_Old, State, _Other) ->
-    {ok, State}.
-
-
-handle_call(_Msg, _From, State) ->
-    {reply, ok, State}.
-
-
 handle_cast(next_gen,
     #state{cells=Cells
           ,num_cells=NumCells
@@ -141,10 +139,6 @@ handle_cast(_Msg, State) ->
     {noreply, State}.
 
 
-handle_info(_Msg, State) ->
-    {noreply, State}.
-
-
 %% ============================================================================
 %% Internal
 %% ============================================================================
This page took 0.02761 seconds and 4 git commands to generate.