Remove unused include

This commit is contained in:
Gavin M. Roy 2016-01-22 10:36:33 -05:00
parent 791ed9efc9
commit 63a72b114e
5 changed files with 2 additions and 34 deletions

View file

@ -1,28 +0,0 @@
%% =============================================================================
%% @author Gavin M. Roy <gavinmroy@gmail.com>
%% @copyright 2016
%% @doc urilib is a RFC-3986 URI Library for Erlang
%% @end
%% =============================================================================
-record(authority, {host :: string(),
port :: integer()}).
-record(userinfo, {username :: string(),
password :: string()}).
-record(uri, {scheme :: atom(),
userinfo :: #userinfo{},
authority :: #authority{},
path :: string(),
query :: list(),
fragment :: string()}).
-record(url, {scheme :: atom(),
username :: string(),
password :: string(),
host :: string(),
port :: integer(),
path :: string(),
query :: list(),
fragment :: string()}).

View file

@ -4,7 +4,7 @@
{clean_files, ["*.eunit", "ebin/*.beam"]}.
{dialyzer, [{plt_extra_apps, [kernel, stdlib, erts, inets, edoc]}]}.
{erl_opts, [fail_on_warning]}.
{edoc_opts, [{includes, "include"}, {title, "urllib"}, {pretty_printer, erl_pp}]}.
{edoc_opts, [{title, "urllib"}, {pretty_printer, erl_pp}, {dir, "docs"}]}.
{eunit_exclude_deps, true}.
{eunit_opts, [verbose, {skip_deps, true}]}.
{lib_dirs,["deps"]}.

View file

@ -1,6 +1,6 @@
{application, urilib, [
{description, "A RFC-3986 URI Library for parsing and building URIs"},
{vsn,"0.1.0"},
{vsn,"0.1.1"},
{licenses, ["BSD"]},
{links, [{"Github", "https://github.com/gmr/urilib"}]},
{maintainers, ["Gavin M. Roy"]},

View file

@ -27,8 +27,6 @@
uri/0,
url/0]).
-include("urilib.hrl").
%% Export all for unit tests
-ifdef(TEST).
-compile(export_all).

View file

@ -2,8 +2,6 @@
-include_lib("eunit/include/eunit.hrl").
-include("urilib.hrl").
build_variation1_test() ->
Params = {amqp, {{"guest", "password"}, "rabbitmq", 5672}, "/%2f", [{"heartbeat", "5"}], undefined},
Expect = "amqp://guest:password@rabbitmq:5672/%2f?heartbeat=5",