From 0f035a32163e4b7fd1e5239857b3268acdd31c37 Mon Sep 17 00:00:00 2001 From: Susan Potter Date: Tue, 8 Feb 2011 19:47:48 -0600 Subject: [PATCH] Remove gen_server configuration and template Remove gen_server configuration and template files for consistency. finsrv now replaces this template. --- gen_server.erl | 58 --------------------------------------------- gen_server.template | 4 ---- 2 files changed, 62 deletions(-) delete mode 100644 gen_server.erl delete mode 100644 gen_server.template diff --git a/gen_server.erl b/gen_server.erl deleted file mode 100644 index 0313ade..0000000 --- a/gen_server.erl +++ /dev/null @@ -1,58 +0,0 @@ -%%%---------------------------------------------------------------------- -%% @author {{author_name}} <{{author_name}}> -%% @copyright {{copyright_year}} {{author_name}} -%% @doc gen_server that ... -%%%---------------------------------------------------------------------- --module({{name}}). --author('{{author_name}} <{{author_email}}>'). - --behaviour(gen_server). - --export([start_link/0]). --export([init/1, handle_call/3, handle_cast/2, handle_info/2]). --export([code_change/3]). --export([stop/0, terminate/2]). - --ifdef(TEST). --compile(export_all). --endif. - -% start_link -start_link() -> - gen_server:start_link({local, ?MODULE}, ?MODULE, [], []). - -% init -init(State) -> - {ok, State}. - -% handle_call -handle_call(Req, From, State) -> - {reply, State}. - -% handle_cast -handle_cast(stop, State) -> - {stop, normal, State}; -handle_cast(Req, State) -> - {noreply, State}. - -% handle_info -handle_info(Info, State) -> - {noreply, State}. - -% code_change -code_change(OldVsn, State, Extra) -> - {ok, State}. - -% stop -stop() -> - gen_server:cast(?MODULE, stop). - -% terminate -terminate(normal, State) -> - ok; -terminate(shutdown, State) -> - ok; -terminate({shutdown, Reason}, State) -> - ok; -terminate(Reason, State) -> - ok. diff --git a/gen_server.template b/gen_server.template deleted file mode 100644 index dab905a..0000000 --- a/gen_server.template +++ /dev/null @@ -1,4 +0,0 @@ -{variables, [ - {name, "myserver"}, - {author_name, "Susan Potter "}]}. -{template, "gen_server.erl", "src/{{name}}.erl"}.