diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-19 15:40:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-19 15:40:09 +0000 |
commit | 9556b03ca5f9cb26b16b414faaaea90559843e0c (patch) | |
tree | f8aedc9957fdbccf5630fc28d1d29c49fb4a5dc3 /src/mir_app | |
parent | 9e42bd2436c360a0ddb9d526c991ad8a46e9db9a (diff) |
unused helper removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/miranda.h | 2 | ||||
-rw-r--r-- | src/mir_app/src/protocols.cpp | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/mir_app/src/miranda.h b/src/mir_app/src/miranda.h index 3a7f358eac..6b4939f2c1 100644 --- a/src/mir_app/src/miranda.h +++ b/src/mir_app/src/miranda.h @@ -150,8 +150,6 @@ PROTOACCOUNT* Proto_CreateAccount(const char *szModuleName, const char *szBasePr PROTOACCOUNT* __fastcall Proto_GetAccount(MCONTACT hContact);
-bool __fastcall Proto_IsAccountLocked(PROTOACCOUNT *pa);
-
PROTO_INTERFACE* AddDefaultAccount(const char *szProtoName);
int FreeDefaultAccount(PROTO_INTERFACE* ppi);
diff --git a/src/mir_app/src/protocols.cpp b/src/mir_app/src/protocols.cpp index 1d81c61188..e1fd602abc 100644 --- a/src/mir_app/src/protocols.cpp +++ b/src/mir_app/src/protocols.cpp @@ -338,16 +338,11 @@ MIR_APP_DLL(bool) Proto_IsAccountEnabled(const PROTOACCOUNT *pa) return pa && ((pa->bIsEnabled && !pa->bDynDisabled) || pa->bOldProto);
}
-bool __fastcall Proto_IsAccountLocked(PROTOACCOUNT *pa)
+MIR_APP_DLL(bool) Proto_IsAccountLocked(const PROTOACCOUNT *pa)
{
return pa && db_get_b(NULL, pa->szModuleName, "LockMainStatus", 0) != 0;
}
-MIR_APP_DLL(bool) Proto_IsAccountLocked(const char *pszModuleName)
-{
- return Proto_IsAccountLocked(Proto_GetAccount(pszModuleName));
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
MIR_APP_DLL(int) ProtoServiceExists(const char *szModule, const char *szService)
|