Skip to content

Commit

Permalink
Merge pull request #575 from robertoaloi/elp-lint
Browse files Browse the repository at this point in the history
Remove unused macros (as detected by ELP)
  • Loading branch information
zmstone authored Feb 17, 2024
2 parents b944f30 + 78afbd3 commit 34da87e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/brod_cli_pipe.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
-define(LINE_BREAK, <<"\n">>).
-define(STDIN, standard_io).
-define(EOF_RETRY_DELAY_MS, 100).
-define(NOT_APPLICABLE, 'N/A').
-define(CONTINUE_MSG, continue).
-define(PARENT_BUSY_MSG_QUEUE_LEN_THRESHOLD, 100).

Expand Down
1 change: 0 additions & 1 deletion src/brod_consumer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
%% so prefetch-count can dominate fetch-ahead limit
-define(DEFAULT_PREFETCH_BYTES, 102400). % 100 KB
-define(DEFAULT_OFFSET_RESET_POLICY, reset_by_subscriber).
-define(ERROR_COOLDOWN, 1000).
-define(CONNECTION_RETRY_DELAY_MS, 1000).

-define(SEND_FETCH_REQUEST, send_fetch_request).
Expand Down
1 change: 0 additions & 1 deletion src/brod_kafka_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
-type offset() :: brod:offset().
-type conn() :: kpro:connection().

-define(MIN_MAGIC_2_PRODUCE_API_VSN, 3).

%% @doc Make a produce request, If the first arg is a connection pid, call
%% `brod_kafka_apis:pick_version/2' to resolve version.
Expand Down
1 change: 0 additions & 1 deletion src/brod_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ describe_groups(CoordinatorEndpoint, ConnCfg, IDs) ->
request_sync(Pid, Req)
end).

-define(IS_BYTE(I), (I>=0 andalso I<256)).

%% @doc Return message set size in number of bytes.
%% NOTE: This does not include the overheads of encoding protocol.
Expand Down

0 comments on commit 34da87e

Please sign in to comment.