remove unused print_trace
This commit is contained in:
parent
44dd5fe02f
commit
1342c511cd
1 changed files with 0 additions and 25 deletions
25
src/user.cpp
25
src/user.cpp
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue