Remove window subfunction types
These were type safety mechanisms, which are obsolete now that all window handlers are implemented through virtual function dispatch.
This commit is contained in:
parent
7a90b1461d
commit
1a08ecc8c6
|
@ -27,14 +27,6 @@ namespace dcx {
|
|||
|
||||
class window;
|
||||
|
||||
template <typename T>
|
||||
using window_subfunction = window_event_result (*)(window *menu,const d_event &event, T *userdata);
|
||||
|
||||
template <typename T>
|
||||
using window_subclass_subfunction = window_event_result (*)(T *menu,const d_event &event, void*);
|
||||
|
||||
class unused_window_userdata_t;
|
||||
|
||||
int window_close(window *wind);
|
||||
window *window_get_front();
|
||||
window *window_get_first();
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
namespace dcx {
|
||||
|
||||
constexpr const unused_window_userdata_t *unused_window_userdata = nullptr;
|
||||
|
||||
class window
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -494,7 +494,6 @@ struct game_cheats : prohibit_void_ptr<game_cheats>
|
|||
extern game_cheats cheats;
|
||||
|
||||
game_window *game_setup();
|
||||
window_event_result game_handler(window *wind,const d_event &event, const unused_window_userdata_t *);
|
||||
window_event_result ReadControls(const d_event &event, control_info &Controls);
|
||||
bool allowed_to_fire_laser(const player_info &);
|
||||
void reset_globals_for_new_game();
|
||||
|
|
Loading…
Reference in a new issue