summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-24 02:45:51 +0100
committerGravatar Martin Szulecki2010-01-24 02:45:51 +0100
commit4ded564cbc58bd513ece9ff9f8c5a6948759bfb7 (patch)
tree9cfb4a1ccbb69abc64f4099a248b7d7807d2a50b /src
parent79fcf91cc86574257539fb45b0b6d1a1c64852c5 (diff)
downloadlibimobiledevice-4ded564cbc58bd513ece9ff9f8c5a6948759bfb7.tar.gz
libimobiledevice-4ded564cbc58bd513ece9ff9f8c5a6948759bfb7.tar.bz2
Remove duplicated dumping of plists in mobilesync
Diffstat (limited to 'src')
-rw-r--r--src/mobilesync.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mobilesync.c b/src/mobilesync.c
index 3492673..15614b5 100644
--- a/src/mobilesync.c
+++ b/src/mobilesync.c
@@ -109,16 +109,6 @@ mobilesync_error_t mobilesync_receive(mobilesync_client_t client, plist_t * plis
if (!client)
return MOBILESYNC_E_INVALID_ARG;
mobilesync_error_t ret = mobilesync_error(device_link_service_receive(client->parent, plist));
-#ifndef STRIP_DEBUG_CODE
- if (ret != MOBILESYNC_E_SUCCESS) {
- return ret;
- }
- char *XMLContent = NULL;
- uint32_t length = 0;
- plist_to_xml(*plist, &XMLContent, &length);
- debug_info("plist size: %i\nbuffer :\n%s", length, XMLContent);
- free(XMLContent);
-#endif
return ret;
}
@@ -136,13 +126,5 @@ mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist)
{
if (!client || !plist)
return MOBILESYNC_E_INVALID_ARG;
-
-#ifndef STRIP_DEBUG_CODE
- char *XMLContent = NULL;
- uint32_t length = 0;
- plist_to_xml(plist, &XMLContent, &length);
- debug_info("plist size: %i\nbuffer :\n%s", length, XMLContent);
- free(XMLContent);
-#endif
return mobilesync_error(device_link_service_send(client->parent, plist));
}