summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-05 20:17:39 +0000
committeralberth <alberth@openttd.org>2009-05-05 20:17:39 +0000
commit6d783983e776791555baa215aa83883ea85c6266 (patch)
treeb2117e1ba18f51b3c00f64c8f8ade40e6b981321 /src/network
parent819588c51f7f7913f87293f74ef55053b742a1b6 (diff)
downloadopenttd-6d783983e776791555baa215aa83883ea85c6266.tar.xz
(svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_chat_gui.cpp16
-rw-r--r--src/network/network_content_gui.cpp16
2 files changed, 0 insertions, 32 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index 09459c5de..c044bcfca 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -514,22 +514,6 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
EndContainer(),
};
-void test_chat()
-{
- const Widget *wid;
-
- printf("_chat_window_widgets\n");
- wid = InitializeWidgetArrayFromNestedWidgets(_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets), _chat_window_widgets, NULL);
- free((void *)wid);
-}
-
-static const WindowDesc _chat_window_desc(
- WDP_CENTER, -26, 320, 14, 640, 14, // x, y, width, height
- WC_SEND_NETWORK_MSG, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
- _chat_window_widgets, _nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
-);
-
void ShowNetworkChatQueryWindow(DestType type, int dest)
{
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index d89a23292..b8ed8ca85 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -834,22 +834,6 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
EndContainer(),
};
-void test_nested_content()
-{
- const Widget *wid;
-
- printf("_network_content_download_status_window_widget\n");
- wid = InitializeWidgetArrayFromNestedWidgets(_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets),
- _network_content_download_status_window_widget, NULL);
- free((void *)wid);
-
- printf("_network_content_list_widgets\n");
- wid = InitializeWidgetArrayFromNestedWidgets(_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets),
- _network_content_list_widgets, NULL);
- free((void *)wid);
-}
-
-
/** Window description of the content list */
static const WindowDesc _network_content_list_desc(
WDP_CENTER, WDP_CENTER, 450, 278, 630, 460,