From 089f185d3c9d8e052be69d5c9cb82b2c72081821 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 11 Mar 2017 19:56:29 +0000 Subject: [PATCH] Remove unused rule classes zico removed all uses of these classes in 3366658a5bd2, but did not remove their definitions. No one has tried to repurpose them, so remove the definitions. Fixes: 3366658a5bd2b30a82949b8b301e97b324ce539d ("Updated 'Netgame Rules & Info' screen, added option to toggle it ingame via SHIFT-PAUSE, added hint to netgame help menu") --- similar/main/net_udp.cpp | 43 ---------------------------------------- 1 file changed, 43 deletions(-) diff --git a/similar/main/net_udp.cpp b/similar/main/net_udp.cpp index 36b1c10ed..03ec92646 100644 --- a/similar/main/net_udp.cpp +++ b/similar/main/net_udp.cpp @@ -253,49 +253,6 @@ public: }; #endif -class basic_show_rule_label -{ -public: - static void show_item(int x1, int y, const char *label, int /* x2 */, const char * /* value */) - { - gr_string(*grd_curcanv, x1, y, label); - } -}; - -class basic_show_rule_value -{ -public: - static void show_item(int /* x1 */, int y, const char * /*label */, int x2, const char *value) - { - gr_string(*grd_curcanv, x2, y, value); - } -}; - -template -class basic_show_rule : protected D -{ - using D::show_item; -public: - template - static void show_bool_oo(int x1, int y, int x2, const char *label, T enabled) - { - show_item(x1, y, label, x2, enabled ? "ON" : "OFF"); - } - template - static void show_bool_yn(int x1, int y, int x2, const char *label, T enabled) - { - show_item(x1, y, label, x2, enabled ? "YES" : "NO"); - } - template - static void show_mask_yn(int x1, int y, int x2, const char *label, T1 enabled, T2 mask) - { - show_bool_yn(x1, y, x2, label, enabled & mask); - } -}; - -typedef basic_show_rule show_rule_label; -typedef basic_show_rule show_rule_value; - class start_poll_menu_items { /* The host must play */