diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-18 10:23:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-18 10:23:15 +0000 |
commit | c1fe671e216c15ac541a05ce8d73213837033426 (patch) | |
tree | c0da4960f941d9b71bcdca909a143783ebd312c6 /plugins/MyDetails | |
parent | 5e5cabbee2c2249be4e34efc9bafa1b05136111a (diff) |
unneeded check removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@16844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 9 | ||||
-rw-r--r-- | plugins/MyDetails/src/data.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 638d0a928f..88f9b1eab1 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -273,11 +273,6 @@ void Protocol::GetAvatar() }
-bool Protocol::CanGetNick()
-{
- return ServiceExists(MS_CONTACT_GETCONTACTINFO) != FALSE;
-}
-
int Protocol::GetNickMaxLength()
{
if (!ProtoServiceExists(name, PS_GETMYNICKNAMEMAXLENGTH))
@@ -291,10 +286,6 @@ int Protocol::GetNickMaxLength() TCHAR *Protocol::GetNick()
{
- // See if can get one
- if (!CanGetNick())
- return NULL;
-
// Get it
CONTACTINFO ci = { 0 };
ci.cbSize = sizeof(ci);
diff --git a/plugins/MyDetails/src/data.h b/plugins/MyDetails/src/data.h index 2423da653d..6af422d56d 100644 --- a/plugins/MyDetails/src/data.h +++ b/plugins/MyDetails/src/data.h @@ -73,7 +73,6 @@ public: void SetAvatar(const TCHAR *file_name);
//void SetAvatar(const char *file_name, HBITMAP hBmp);
- bool CanGetNick();
TCHAR *GetNick(); // Copy to cache and return a copy
int GetNickMaxLength();
bool CanSetNick();
|