From 20a48ce65e0f14898e5027df080ec01813c1feb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 7 Dec 2013 15:28:02 +0100 Subject: Get rid of a ton of pointless comments All of it can be found in the manual, which defines what the code must do, and is always up to date unlike the code comments. --- src/ranch_app.erl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/ranch_app.erl') diff --git a/src/ranch_app.erl b/src/ranch_app.erl index 2402de6..95c9031 100644 --- a/src/ranch_app.erl +++ b/src/ranch_app.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2012, Loïc Hoguin +%% Copyright (c) 2011-2013, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above @@ -12,19 +12,15 @@ %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -%% @private -module(ranch_app). -behaviour(application). -%% API. -export([start/2]). -export([stop/1]). -export([profile_output/0]). -%% API. - start(_, _) -> - consider_profiling(), + _ = consider_profiling(), ranch_sup:start_link(). stop(_) -> @@ -38,9 +34,6 @@ profile_output() -> eprof:log("total.profile"), eprof:analyze(total). -%% Internal. - --spec consider_profiling() -> profiling | not_profiling. consider_profiling() -> case application:get_env(profile) of {ok, true} -> -- cgit v1.2.3