From 1416051048756ab769de52ab5eb67a31e41524fd Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 10 Mar 2013 11:49:39 +0000 Subject: removed not used headers added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/chat.h | 9 --------- plugins/TabSRMM/src/chat/chatprototypes.h | 3 --- plugins/TabSRMM/src/chat/clist.cpp | 4 ---- plugins/TabSRMM/src/chat/colorchooser.cpp | 3 --- plugins/TabSRMM/src/chat/log.cpp | 7 ------- plugins/TabSRMM/src/chat/main.cpp | 2 -- plugins/TabSRMM/src/chat/manager.cpp | 8 -------- plugins/TabSRMM/src/chat/message.cpp | 3 --- plugins/TabSRMM/src/chat/muchighlight.cpp | 4 ---- plugins/TabSRMM/src/chat/options.cpp | 9 --------- plugins/TabSRMM/src/chat/services.cpp | 9 ++------- plugins/TabSRMM/src/chat/tools.cpp | 9 --------- plugins/TabSRMM/src/chat/window.cpp | 7 ++----- 13 files changed, 4 insertions(+), 73 deletions(-) (limited to 'plugins/TabSRMM/src/chat') diff --git a/plugins/TabSRMM/src/chat/chat.h b/plugins/TabSRMM/src/chat/chat.h index 97224cef53..12fa5bb75d 100644 --- a/plugins/TabSRMM/src/chat/chat.h +++ b/plugins/TabSRMM/src/chat/chat.h @@ -30,20 +30,11 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: chat.h 12272 2010-08-04 08:24:08Z silvercircle $ - * */ #ifndef _CHAT_H_ #define _CHAT_H_ -#pragma warning( disable : 4786 ) // limitation in MSVC's debugger. -#pragma warning( disable : 4996 ) // limitation in MSVC's debugger. - -#define WIN32_LEAN_AND_MEAN - -#include "m_stdhdr.h" - //defines #define OPTIONS_FONTCOUNT 20 #define GC_UPDATETITLE (WM_USER+100) diff --git a/plugins/TabSRMM/src/chat/chatprototypes.h b/plugins/TabSRMM/src/chat/chatprototypes.h index c304b38cec..4f682ce6b4 100644 --- a/plugins/TabSRMM/src/chat/chatprototypes.h +++ b/plugins/TabSRMM/src/chat/chatprototypes.h @@ -16,9 +16,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -$Id: chatprototypes.h 13184 2010-12-07 14:16:58Z silvercircle $ - */ void LoadIcons(void); diff --git a/plugins/TabSRMM/src/chat/clist.cpp b/plugins/TabSRMM/src/chat/clist.cpp index d3714fc820..d465202497 100644 --- a/plugins/TabSRMM/src/chat/clist.cpp +++ b/plugins/TabSRMM/src/chat/clist.cpp @@ -26,8 +26,6 @@ contacts and handle default action for such contacts. This code was taken in almost unmodified from from the chat.dll plugin, originally written by Jörgen Persson -$Id: clist.c 10402 2009-07-24 00:35:21Z silvercircle $ - */ /* @@ -38,8 +36,6 @@ $Id: clist.c 10402 2009-07-24 00:35:21Z silvercircle $ char *szChatIconString = "chaticon"; -extern HANDLE hJoinMenuItem, hLeaveMenuItem; - static HANDLE Clist_GroupExists(TCHAR *tszGroup) { unsigned int i = 0; diff --git a/plugins/TabSRMM/src/chat/colorchooser.cpp b/plugins/TabSRMM/src/chat/colorchooser.cpp index 2bf8b4ded2..53a0ae67cc 100644 --- a/plugins/TabSRMM/src/chat/colorchooser.cpp +++ b/plugins/TabSRMM/src/chat/colorchooser.cpp @@ -30,14 +30,11 @@ * original chat module for Miranda NG, written and copyrighted * by Joergen Persson in 2005. * - * $Id: colorchooser.cpp 10670 2009-09-11 03:28:50Z silvercircle $ - * * Color chooser for group chats * */ #include "..\commonheaders.h" -#include static int CalculateCoordinatesToButton(COLORCHOOSER * pCC, POINT pt) { diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp index 9aa450af3d..cf58bec369 100644 --- a/plugins/TabSRMM/src/chat/log.cpp +++ b/plugins/TabSRMM/src/chat/log.cpp @@ -30,25 +30,18 @@ * * (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: log.cpp 13614 2011-04-22 13:16:21Z borkra $ - * * Implements the richedit-based message history display for the group * chat window. * */ #include "..\commonheaders.h" -#include -#include /* * The code for streaming the text is to a large extent copied from * the srmm module and then modified to fit the chat module. */ -extern FONTINFO aFonts[OPTIONS_FONTCOUNT]; -extern HICON hIcons[30]; - static PBYTE pLogIconBmpBits[14]; static int logIconBmpSize[ SIZEOF(pLogIconBmpBits)]; diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp index 56489a2fc9..1e8919e8c0 100644 --- a/plugins/TabSRMM/src/chat/main.cpp +++ b/plugins/TabSRMM/src/chat/main.cpp @@ -30,8 +30,6 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: main.cpp 13132 2010-11-17 03:47:44Z silvercircle $ - * * chat module exports and functions to load/unload the plugin. * */ diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp index e8a203a470..090f4ce119 100644 --- a/plugins/TabSRMM/src/chat/manager.cpp +++ b/plugins/TabSRMM/src/chat/manager.cpp @@ -19,24 +19,16 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -$Id: manager.cpp 14208 2012-03-26 13:56:42Z silvercircle $ */ #include "..\commonheaders.h" -extern TCHAR *pszActiveWndID ; -extern char *pszActiveWndModule ; -extern HICON hIcons[30]; - #define WINDOWS_COMMANDS_MAX 30 #define STATUSICONCOUNT 6 SESSION_INFO *m_WndList = 0; MODULEINFO *m_ModList = 0; -extern CRITICAL_SECTION cs; - void SetActiveSession(const TCHAR* pszID, const char* pszModule) { SESSION_INFO* si = SM_FindSession(pszID, pszModule); diff --git a/plugins/TabSRMM/src/chat/message.cpp b/plugins/TabSRMM/src/chat/message.cpp index 5fb99a38c4..0b6e0b00a4 100644 --- a/plugins/TabSRMM/src/chat/message.cpp +++ b/plugins/TabSRMM/src/chat/message.cpp @@ -19,12 +19,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -$Id: message.c 10402 2009-07-24 00:35:21Z silvercircle $ */ #include "..\commonheaders.h" -#include static int RTFColorToIndex(int *pIndex, int iCol, SESSION_INFO* si) { diff --git a/plugins/TabSRMM/src/chat/muchighlight.cpp b/plugins/TabSRMM/src/chat/muchighlight.cpp index 36bf980b3c..935d2e38d4 100644 --- a/plugins/TabSRMM/src/chat/muchighlight.cpp +++ b/plugins/TabSRMM/src/chat/muchighlight.cpp @@ -26,16 +26,12 @@ * * (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: muchighlight.cpp 13184 2010-12-07 14:16:58Z silvercircle $ - * * highlighter class for multi user chats * */ #include "..\commonheaders.h" -//#define __HLT_PERFSTATS 0 - void CMUCHighlight::cleanup() { if (m_NickPatternString) diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp index 5057f53ab7..d74e321c5d 100644 --- a/plugins/TabSRMM/src/chat/options.cpp +++ b/plugins/TabSRMM/src/chat/options.cpp @@ -30,21 +30,12 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: options.cpp 13412 2011-03-08 19:13:11Z george.hazan $ - * * group chat options and generic font handling * */ #include "..\commonheaders.h" -extern HBRUSH hListBkgBrush; -extern HICON hIcons[30]; -extern FONTINFO aFonts[OPTIONS_FONTCOUNT]; -extern HMODULE g_hIconDLL; - -extern HIMAGELIST CreateStateImageList(); - #define FONTF_BOLD 1 #define FONTF_ITALIC 2 diff --git a/plugins/TabSRMM/src/chat/services.cpp b/plugins/TabSRMM/src/chat/services.cpp index 9219d730f2..ed4907467a 100644 --- a/plugins/TabSRMM/src/chat/services.cpp +++ b/plugins/TabSRMM/src/chat/services.cpp @@ -30,17 +30,12 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: services.cpp 13046 2010-10-28 10:02:50Z silvercircle $ - * * This implements the services that form the group chat API * */ #include "..\commonheaders.h" -// defs -extern HICON hIcons[30]; - CRITICAL_SECTION cs; HANDLE hSendEvent; @@ -454,9 +449,9 @@ HWND CreateNewRoom(TContainerData *pContainer, SESSION_INFO *si, BOOL bActivateT TCHAR newcontactname[128]; if ( lstrlen(contactName) > 0) { if (M->GetByte("cuttitle", 0)) - CutContactName(contactName, newcontactname, safe_sizeof(newcontactname)); + CutContactName(contactName, newcontactname, SIZEOF(newcontactname)); else { - lstrcpyn(newcontactname, contactName, safe_sizeof(newcontactname)); + lstrcpyn(newcontactname, contactName, SIZEOF(newcontactname)); newcontactname[127] = 0; } } diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp index dfe7071225..e6576b39e9 100644 --- a/plugins/TabSRMM/src/chat/tools.cpp +++ b/plugins/TabSRMM/src/chat/tools.cpp @@ -30,21 +30,12 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: tools.cpp 13650 2011-05-30 11:53:13Z silvercircle@gmail.com $ - * * Helper functions for the group chat module. * */ #include "..\commonheaders.h" -// externs -extern HICON hIcons[30]; -extern FONTINFO aFonts[OPTIONS_FONTCOUNT]; -extern HMENU g_hMenu; -extern HANDLE hBuildMenuEvent ; -extern HANDLE hSendEvent; - int GetRichTextLength(HWND hwnd) { GETTEXTLENGTHEX gtl; diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 17c8f5580a..ed591ba6d1 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -30,15 +30,12 @@ * * (C) 2005-2009 by silvercircle _at_ gmail _dot_ com and contributors * - * $Id: window.cpp 13631 2011-04-24 08:44:57Z silvercircle $ - * * This implements the group chat dialog window * */ #include "..\commonheaders.h" -#include //#include "../m_MathModule.h" @@ -2118,9 +2115,9 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar if (lstrlen(szNick) > 0) { if (M->GetByte("cuttitle", 0)) - CutContactName(szNick, dat->newtitle, safe_sizeof(dat->newtitle)); + CutContactName(szNick, dat->newtitle, SIZEOF(dat->newtitle)); else { - lstrcpyn(dat->newtitle, szNick, safe_sizeof(dat->newtitle)); + lstrcpyn(dat->newtitle, szNick, SIZEOF(dat->newtitle)); dat->newtitle[129] = 0; } } -- cgit v1.2.3