Skip to content

Dead code in mui-textinput.lua #276

Description

@sancho2

Line 292 of mui-textinput.lua reads 'M.addBaseEventParameters(event, options)'.
The second parameter 'options' is not yet defined and it is not global. Therefore it will always be nil.
The first line of the function addBaseEventParameters reads
'if event == nil or options == nil or event.muiDict ~= nil then return end' (Line 364).
Since options is always nil this function will always just return without doing anything.
After some testing I think this line (292) can be safely removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions