X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3556f24564ddfe6fee1fb12bc8b976b9b4c0b5df..46b0747592074017ff0ea4b33d4a7194235886e5:/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp?ds=sidebyside
diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp
deleted file mode 100644
index 21765e11..00000000
--- a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "parser_auth_by.h"
-
-#include "stg/users.h"
-#include "stg/user.h"
-
-int PARSER_AUTH_BY::ParseStart(void * /*data*/, const char *el, const char **attr)
-{
-if (strcasecmp(el, "GetUserAuthBy") == 0)
-    {
-    if (attr[0] && attr[1])
-        login = attr[1];
-    else
-        {
-        login.erase(login.begin(), login.end());
-        return -1;
-        }
-    return 0;
-    }
-return -1;
-}
-
-int PARSER_AUTH_BY::ParseEnd(void * /*data*/, const char *el)
-{
-if (strcasecmp(el, "GetUserAuthBy") == 0)
-    {
-    CreateAnswer();
-    return 0;
-    }
-return -1;
-}
-
-void PARSER_AUTH_BY::CreateAnswer()
-{
-USER_PTR u;
-if (users->FindByName(login, &u))
-    {
-    answer = "";
-    return;
-    }
-
-answer.clear();
-answer += "";
-std::vector list(u->GetAuthorizers());
-for (std::vector::const_iterator it = list.begin(); it != list.end(); ++it)
-    answer += "";
-answer += "";
-}