Commit b46e6155 authored by Lioncash's avatar Lioncash
Browse files

input_common/sdl/sdl_impl: Simplify SDL_Joystick deleter handling

The deleter can just be set in the constructor and maintained throughout
the lifetime of the object.

If a contained pointer is null, then the deleter won't execute, so this
is safe to do. We don't need to swap it out with a version of a deleter
that does nothing.
parent 7ea07c60
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment