Skip to content

Commit

Permalink
fix: removed some unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rachartier committed Jul 19, 2024
1 parent 8984f2c commit 2d1dffb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lua/tiny-inline-diagnostic/chunck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local M = {}
local extmarks = require('tiny-inline-diagnostic.extmarks')
local utils = require('tiny-inline-diagnostic.utils')


--- Function to calculates the maximum width from a list of chunks.
--- @param chunks table: A table representing the chunks of a diagnostic message.
--- @return number: The maximum width among all chunks.
Expand Down Expand Up @@ -91,7 +90,6 @@ end
--- @param need_to_be_under boolean: A flag indicating whether the arrow needs to point upwards.
--- @param diag_hi string: The highlight group for the diagnostic message.
--- @param diag_inv_hi string: The highlight group for the diagnostic signs.
--- @param is_last boolean: A flag indicating whether the chunk is the last one.
--- @return table: A table representing the virtual text array for the diagnostic message body.
function M.get_body_from_chunk(
chunk,
Expand Down Expand Up @@ -133,8 +131,6 @@ function M.get_body_from_chunk(
end

function M.get_arrow_from_chunk(
offset,
cursorpos,
opts,
need_to_be_under
)
Expand All @@ -157,15 +153,12 @@ end
--- Function to splits a diagnostic message into chunks for overflow handling.
--- @param message string: The diagnostic message.
--- @param offset number: The offset from the start of the line to the diagnostic position.
--- @param need_to_be_under boolean: A flag indicating whether the diagnostic message needs to be displayed under the line.
--- @param line_length number: The length of the line where the diagnostic message is.
--- @param win_width number: The width of the window where the diagnostic message is displayed.
--- @param opts table: The options table, which includes signs for the diagnostic message and the softwrap option.
--- @return table: A table representing the chunks of the diagnostic message.
function M.get_message_chunks_for_overflow(
message,
offset,
need_to_be_under,
win_width,
opts
)
Expand Down Expand Up @@ -217,7 +210,6 @@ function M.get_chunks(opts, diag, plugin_offset, curline, buf)
chunks = M.get_message_chunks_for_overflow(
diag.message,
offset + plugin_offset + other_extmarks_offset,
need_to_be_under,
win_width, opts
)
elseif opts.options.overflow.position == "none" then
Expand Down

0 comments on commit 2d1dffb

Please sign in to comment.