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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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