Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused macros (as detected by ELP) #575

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading