From a075d35ca850f06170553d17ca464f0f5feadd97 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Oct 2013 18:28:51 +0000 Subject: separate Folders handles removed from protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@6405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/proto.cpp | 6 +----- protocols/Twitter/src/proto.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index f60e2c1d82..c4279e6bf8 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -48,9 +48,6 @@ TwitterProto::TwitterProto(const char *proto_name,const TCHAR *username) : HookProtoEvent(ME_CLIST_PREBUILDSTATUSMENU, &TwitterProto::OnBuildStatusMenu); HookProtoEvent(ME_OPT_INITIALISE, &TwitterProto::OnOptionsInit); - tstring defFolder = std::tstring( _T("%miranda_avatarcache%\\")) + m_tszUserName; - hAvatarFolder_ = FoldersRegisterCustomPathT(LPGEN("Avatars"), m_szModuleName, defFolder.c_str(), m_tszUserName); - // Initialize hotkeys char text[512]; mir_snprintf(text,SIZEOF(text),"%s/Tweet",m_szModuleName); @@ -510,8 +507,7 @@ void TwitterProto::UpdateSettings() std::tstring TwitterProto::GetAvatarFolder() { TCHAR path[MAX_PATH]; - if (!hAvatarFolder_ || FoldersGetCustomPathT(hAvatarFolder_, path, SIZEOF(path), _T(""))) - mir_sntprintf(path, SIZEOF(path), _T("%s\\%s"), (TCHAR*)VARST( _T("%miranda_avatarcache%")), m_tszUserName); + mir_sntprintf(path, SIZEOF(path), _T("%s\\%s"), VARST( _T("%miranda_avatarcache%")), m_tszUserName); return path; } diff --git a/protocols/Twitter/src/proto.h b/protocols/Twitter/src/proto.h index 1bae62f510..71b22cd3ea 100644 --- a/protocols/Twitter/src/proto.h +++ b/protocols/Twitter/src/proto.h @@ -160,8 +160,6 @@ private: twitter_id since_id_; twitter_id dm_since_id_; - HANDLE hAvatarFolder_; - bool in_chat_; int disconnectionCount; -- cgit v1.2.3