aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-18 13:56:38 +0200
committerLoïc Hoguin <[email protected]>2011-04-18 13:56:38 +0200
commite8286e18e6586120a2c3517c2d45215e10ef9d54 (patch)
tree08e99c68bb50d446d4357e417c51514bc2d494fb
parent63a92df14e25599c6903a8178b5e89acc4482645 (diff)
downloadcowboy-e8286e18e6586120a2c3517c2d45215e10ef9d54.tar.gz
cowboy-e8286e18e6586120a2c3517c2d45215e10ef9d54.tar.bz2
cowboy-e8286e18e6586120a2c3517c2d45215e10ef9d54.zip
Remove the include/types.hrl file.
-rw-r--r--include/types.hrl13
-rw-r--r--src/cowboy_acceptor.erl2
-rw-r--r--src/cowboy_acceptors_sup.erl2
-rw-r--r--src/cowboy_app.erl2
-rw-r--r--src/cowboy_dispatcher.erl1
-rw-r--r--src/cowboy_http_protocol.erl1
-rw-r--r--src/cowboy_http_req.erl1
-rw-r--r--src/cowboy_http_websocket.erl1
-rw-r--r--src/cowboy_requests_sup.erl2
-rw-r--r--src/cowboy_ssl_transport.erl1
-rw-r--r--src/cowboy_tcp_transport.erl1
11 files changed, 0 insertions, 27 deletions
diff --git a/include/types.hrl b/include/types.hrl
deleted file mode 100644
index 10cc6f4..0000000
--- a/include/types.hrl
+++ /dev/null
@@ -1,13 +0,0 @@
-%% Copyright (c) 2011, Loïc Hoguin <[email protected]>
-%%
-%% Permission to use, copy, modify, and/or distribute this software for any
-%% purpose with or without fee is hereby granted, provided that the above
-%% copyright notice and this permission notice appear in all copies.
-%%
-%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/src/cowboy_acceptor.erl b/src/cowboy_acceptor.erl
index db70817..f27f446 100644
--- a/src/cowboy_acceptor.erl
+++ b/src/cowboy_acceptor.erl
@@ -16,8 +16,6 @@
-export([start_link/5]). %% API.
-export([acceptor/5]). %% Internal.
--include("include/types.hrl").
-
%% API.
-spec start_link(LSocket::inet:socket(), Transport::module(),
diff --git a/src/cowboy_acceptors_sup.erl b/src/cowboy_acceptors_sup.erl
index 66ac4a9..3fbffb1 100644
--- a/src/cowboy_acceptors_sup.erl
+++ b/src/cowboy_acceptors_sup.erl
@@ -18,8 +18,6 @@
-export([start_link/6]). %% API.
-export([init/1]). %% supervisor.
--include("include/types.hrl").
-
%% API.
-spec start_link(NbAcceptors::non_neg_integer(), Transport::module(),
diff --git a/src/cowboy_app.erl b/src/cowboy_app.erl
index b251ff4..702d9ce 100644
--- a/src/cowboy_app.erl
+++ b/src/cowboy_app.erl
@@ -20,8 +20,6 @@
-type application_start_type() :: normal |
{takeover, Node::node()} | {failover, Node::node()}.
--include("include/types.hrl").
-
%% API.
-spec start(Type::application_start_type(), Args::term()) -> {ok, Pid::pid()}.
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index e4e5b78..05faa38 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -24,7 +24,6 @@
-export_type([bindings/0, path_tokens/0, dispatch_rules/0]).
--include("include/types.hrl").
-include_lib("eunit/include/eunit.hrl").
%% API.
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index 5e9e636..a25f87a 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -16,7 +16,6 @@
-export([start_link/3]). %% API.
-export([init/3, wait_request/1]). %% FSM.
--include("include/types.hrl").
-include("include/http.hrl").
-record(state, {
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index d7c217f..649f41d 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -33,7 +33,6 @@
reply/4
]). %% Response API.
--include("include/types.hrl").
-include("include/http.hrl").
-include_lib("eunit/include/eunit.hrl").
diff --git a/src/cowboy_http_websocket.erl b/src/cowboy_http_websocket.erl
index 46c2ffa..4cd24dc 100644
--- a/src/cowboy_http_websocket.erl
+++ b/src/cowboy_http_websocket.erl
@@ -15,7 +15,6 @@
-module(cowboy_http_websocket).
-export([upgrade/3]).
--include("include/types.hrl").
-include("include/http.hrl").
-record(state, {
diff --git a/src/cowboy_requests_sup.erl b/src/cowboy_requests_sup.erl
index a759205..8681434 100644
--- a/src/cowboy_requests_sup.erl
+++ b/src/cowboy_requests_sup.erl
@@ -18,8 +18,6 @@
-export([start_link/0, start_request/4]). %% API.
-export([init/1]). %% supervisor.
--include("include/types.hrl").
-
%% API.
-spec start_link() -> {ok, Pid::pid()}.
diff --git a/src/cowboy_ssl_transport.erl b/src/cowboy_ssl_transport.erl
index e7a96ed..a5928bc 100644
--- a/src/cowboy_ssl_transport.erl
+++ b/src/cowboy_ssl_transport.erl
@@ -18,7 +18,6 @@
-opaque sslsocket() :: term().
--include("include/types.hrl").
-include_lib("kernel/include/inet.hrl").
%% API.
diff --git a/src/cowboy_tcp_transport.erl b/src/cowboy_tcp_transport.erl
index d67e096..45c87df 100644
--- a/src/cowboy_tcp_transport.erl
+++ b/src/cowboy_tcp_transport.erl
@@ -16,7 +16,6 @@
-export([name/0, messages/0, listen/1, accept/2, recv/3, send/2, setopts/2,
controlling_process/2, peername/1, close/1]). %% API.
--include("include/types.hrl").
-include_lib("kernel/include/inet.hrl").
%% API.