diff libpurple/protocols/msn/msnutils.c @ 23566:a0e957b7b923

Take care of more cleanup in the MSN code. No more C++ style comments. msn_convert_iso8601 was replaced with purple_str_to_time everywhere, so remove it. REM and SYN were removed in MSNP13. REA was removed in MSNP11. PRP and BLP were added already, so remove the TODO. Contact information is now taken from the contact server, so remove all that commented code from the ADL command.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 12 Jul 2008 06:44:19 +0000
parents 7bceac816e19
children 9487c9b7a01f
line wrap: on
line diff
--- a/libpurple/protocols/msn/msnutils.c	Sat Jul 12 04:50:47 2008 +0000
+++ b/libpurple/protocols/msn/msnutils.c	Sat Jul 12 06:44:19 2008 +0000
@@ -23,7 +23,6 @@
  */
 #include "msn.h"
 #include "msnutils.h"
-#include "time.h"
 
 #include "cipher.h"
 
@@ -476,30 +475,6 @@
 	*ret_host = host;
 	*ret_port = port;
 }
-/***************************************************************************
- * MSN Time Related Funciton
- ***************************************************************************/
-#if 0
-int
-msn_convert_iso8601(const char *timestr,struct tm tm_time)
-{
-	char temp[64];
-	struct tm ctime;
-	time_t ts;
-
-	purple_debug_info("msn", "convert string is{%s}\n", timestr);
-	tzset();
-	/*copy string first*/
-	memset(temp, 0, sizeof(temp));
-	strncpy(temp, timestr, strlen(timestr));
-
-	/*convert via strptime()*/
-	memset(&ctime, 0, sizeof(struct tm));
-	strptime(temp, "%d %b %Y %T %Z", &ctime);
-	ts = mktime(&ctime) - timezone;
-	localtime_r(&ts, tm_time);
-}
-#endif
 
 /***************************************************************************
  * MSN Challenge Computing Function