From 94dcc72f13094157f344f284aec4edf0c0f5faa1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Aug 2013 10:41:37 +0000 Subject: ProtoGetAvatarFormat, ProtoGetAvatarFileFormat, ProtoGetBufferFormat, ProtoGetAvatarExtension - standard helpers for protocol avatars' processing instead of the zoo that existed previously git-svn-id: http://svn.miranda-ng.org/main/trunk@5645 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/utils.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'protocols/FacebookRM/src/utils.cpp') diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp index d02b3901eb..ad9bf8f246 100644 --- a/protocols/FacebookRM/src/utils.cpp +++ b/protocols/FacebookRM/src/utils.cpp @@ -489,28 +489,3 @@ int utils::debug::log(std::string file_name, std::string text) return EXIT_SUCCESS; } - -struct -{ - char *ext; - int fmt; -} -static formats[] = { - { ".png", PA_FORMAT_PNG }, - { ".jpg", PA_FORMAT_JPEG }, - { ".jpeg", PA_FORMAT_JPEG }, - { ".ico", PA_FORMAT_ICON }, - { ".bmp", PA_FORMAT_BMP }, - { ".gif", PA_FORMAT_GIF }, -}; - -int ext_to_format(const std::string &ext) -{ - for(size_t i=0; i