summaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/tvmauth/utils.cpp')
-rw-r--r--library/cpp/tvmauth/utils.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/library/cpp/tvmauth/utils.cpp b/library/cpp/tvmauth/utils.cpp
deleted file mode 100644
index a06cd6f5ba7..00000000000
--- a/library/cpp/tvmauth/utils.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "utils.h"
-
-namespace NTvmAuth::NUtils {
- TStringBuf RemoveTicketSignature(TStringBuf ticketBody) {
- if (ticketBody.size() < 2 ||
- ticketBody[0] != '3' ||
- ticketBody[1] != ':') {
- return ticketBody;
- }
-
- size_t pos = ticketBody.rfind(':');
- if (pos == TStringBuf::npos) { // impossible
- return ticketBody;
- }
-
- return ticketBody.substr(0, pos + 1);
- }
-}