From c2e2c85262148dcf71450dfd3c7b33ef41eb84ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Jan 2019 23:14:19 +0300 Subject: code cleaning - ACKTYPE_URL removed; - PF1_URL removed; - IEED_EVENT_URL removed; - another URL-related code cleaning --- plugins/HistoryStats/src/column_events.cpp | 3 --- plugins/HistoryStats/src/contact.cpp | 6 ------ plugins/HistoryStats/src/contact.h | 4 ---- plugins/HistoryStats/src/statistic.h | 1 - 4 files changed, 14 deletions(-) (limited to 'plugins/HistoryStats/src') diff --git a/plugins/HistoryStats/src/column_events.cpp b/plugins/HistoryStats/src/column_events.cpp index 016558f0ca..db230e666f 100644 --- a/plugins/HistoryStats/src/column_events.cpp +++ b/plugins/HistoryStats/src/column_events.cpp @@ -78,9 +78,6 @@ void ColEvents::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) void ColEvents::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType) { static int (Contact::*getData[6])() const = { - &Contact::getInUrls, - &Contact::getOutUrls, - &Contact::getTotalUrls, &Contact::getInFiles, &Contact::getOutFiles, &Contact::getTotalFiles, diff --git a/plugins/HistoryStats/src/contact.cpp b/plugins/HistoryStats/src/contact.cpp index 8a03c1b746..433ec64da9 100644 --- a/plugins/HistoryStats/src/contact.cpp +++ b/plugins/HistoryStats/src/contact.cpp @@ -19,7 +19,6 @@ Contact::Contact(Statistic* pStatistic, int nSlots, const ext::string& nick, con m_ChatDurMin(0xFFFFFFFF), m_ChatDurMax(0), m_ChatDurSum(0), - m_Urls(0, 0), m_Files(0, 0), m_NumContacts(nContacts), m_NumSubcontacts(nSubcontacts), @@ -89,10 +88,6 @@ void Contact::addEvent(WORD eventType, bool bOutgoing) InOut* pIO = nullptr; switch (eventType) { - case EVENTTYPE_URL: - pIO = &m_Urls; - break; - case EVENTTYPE_FILE: pIO = &m_Files; break; @@ -135,7 +130,6 @@ void Contact::merge(const Contact& other) } m_Files += other.m_Files; - m_Urls += other.m_Urls; m_NumContacts += other.m_NumContacts; m_NumSubcontacts += other.m_NumSubcontacts; diff --git a/plugins/HistoryStats/src/contact.h b/plugins/HistoryStats/src/contact.h index 5d73f1c91d..719a2b4a21 100644 --- a/plugins/HistoryStats/src/contact.h +++ b/plugins/HistoryStats/src/contact.h @@ -36,7 +36,6 @@ private: DWORD m_FirstTime; DWORD m_LastTime; InOut m_Files; - InOut m_Urls; int m_NumContacts; int m_NumSubcontacts; @@ -94,9 +93,6 @@ public: DWORD getLastTime() const { return m_LastTime; } // files and URLs - int getOutUrls() const { return m_Urls.out; } - int getInUrls() const { return m_Urls.in; } - int getTotalUrls() const { return m_Urls.total(); } int getOutFiles() const { return m_Files.out; } int getInFiles() const { return m_Files.in; } int getTotalFiles() const { return m_Files.total(); } diff --git a/plugins/HistoryStats/src/statistic.h b/plugins/HistoryStats/src/statistic.h index fc4f2cacb0..b0de0b3392 100644 --- a/plugins/HistoryStats/src/statistic.h +++ b/plugins/HistoryStats/src/statistic.h @@ -37,7 +37,6 @@ public: etMessage = EVENTTYPE_MESSAGE, // other events etFile = EVENTTYPE_FILE, - etURL = EVENTTYPE_URL, etICQSMS = ICQEVENTTYPE_SMS, etICQWebPager = ICQEVENTTYPE_WEBPAGER, etICQEMailExpress = ICQEVENTTYPE_EMAILEXPRESS, -- cgit v1.2.3