Changeset - 1342c511cdb1
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-09-11 14:37:53
hanzz.k@gmail.com
remove unused print_trace
1 file changed with 0 insertions and 25 deletions:
0 comments (0 inline, 0 general)
src/user.cpp
Show inline comments
 
@@ -30,9 +30,6 @@
 
#include "Swiften/Elements/MUCPayload.h"
 
#include "log4cxx/logger.h"
 
#include <boost/foreach.hpp>
 
#ifndef WIN32
 
#include <execinfo.h>
 
#endif
 
#include <stdio.h>
 
#include <stdlib.h>
 

	
 
@@ -104,30 +101,8 @@ Swift::JID User::getJIDWithFeature(const std::string &feature) {
 
	return jid;
 
}
 

	
 
static void
 
print_trace (void)
 
{
 
#ifndef WIN32
 
void *array[80];
 
size_t size;
 
char **strings;
 
size_t i;
 

	
 
size = backtrace (array, 80);
 
strings = backtrace_symbols (array, size);
 

	
 
printf ("Obtained %zd stack frames.\n", size);
 

	
 
for (i = 0; i < size; i++)
 
	printf ("%s\n", strings[i]);
 

	
 
free (strings);
 
#endif
 
}
 

	
 
void User::handlePresence(Swift::Presence::ref presence) {
 
	std::cout << "PRESENCE " << presence->getFrom().toString() << "\n";
 
// 	print_trace();
 
	if (!m_connected) {
 
		// we are not connected to legacy network, so we should do it when disco#info arrive :)
 
		if (m_readyForConnect == false) {
0 comments (0 inline, 0 general)