From 5b4256ce42bf9afbb53cb941b39db2981fc1ff71 Mon Sep 17 00:00:00 2001 From: beveloper Date: Mon, 26 May 2003 12:37:05 +0000 Subject: [PATCH] removed debugging code git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3337 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/media/DataExchange.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/kits/media/DataExchange.cpp b/src/kits/media/DataExchange.cpp index dc44b5d09d..08bef34eb7 100644 --- a/src/kits/media/DataExchange.cpp +++ b/src/kits/media/DataExchange.cpp @@ -13,8 +13,6 @@ #include "DataExchange.h" #include "ServerInterface.h" // NEW_MEDIA_SERVER_SIGNATURE -#define CRASH_ON_ERRROR 0 - #define TIMEOUT 15000000 // 15 seconds timeout! namespace BPrivate { @@ -31,12 +29,6 @@ static port_id MediaAddonServerPort; void find_media_server_port(); void find_media_addon_server_port(); -#if CRASH_ON_ERRROR - #define crash_now() debugger("crash") -#else - #define crash_now() ((void)0) -#endif - class initit { public: @@ -93,7 +85,6 @@ status_t SendToServer(BMessage *msg) rv = MediaServerMessenger->SendMessage(msg, static_cast(NULL), TIMEOUT); if (rv != B_OK) { FATAL("SendToServer: SendMessage failed\n"); - crash_now(); } return rv; } @@ -137,13 +128,11 @@ status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg, int size find_media_addon_server_port(); sendport = MediaAddonServerPort; } else { - crash_now(); return rv; } rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT); if (rv != B_OK) { FATAL("SendToPort: retrying write_port failed, port %ld, error %#lx (%s)\n", sendport, rv, strerror(rv)); - crash_now(); return rv; } } @@ -169,14 +158,12 @@ status_t QueryPort(port_id requestport, int32 msgcode, request_data *request, in find_media_addon_server_port(); requestport = MediaAddonServerPort; } else { - crash_now(); _PortPool->PutPort(request->reply_port); return rv; } rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT); if (rv != B_OK) { FATAL("QueryPort: retrying write_port failed, port %ld, error %#lx (%s)\n", requestport, rv, strerror(rv)); - crash_now(); _PortPool->PutPort(request->reply_port); return rv; } @@ -187,7 +174,6 @@ status_t QueryPort(port_id requestport, int32 msgcode, request_data *request, in if (rv < B_OK) { FATAL("QueryPort: read_port failed, port %ld, error %#lx (%s)\n", request->reply_port, rv, strerror(rv)); - crash_now(); } return (rv < B_OK) ? rv : reply->result;