Browse Source

Deleted two useless functions in the Filesystem session handler's main module

Roland Haroutiounian 8 years ago
parent
commit
aaca366e59
1 changed files with 1 additions and 15 deletions
  1. 1
    15
      plugins/filesystem_session/main.py

+ 1
- 15
plugins/filesystem_session/main.py View File

@@ -59,20 +59,6 @@ def _get_token_from_session_filename(filename):
59 59
     return None
60 60
 
61 61
 
62
-## @brief Defines a session file name from a token
63
-# @param token str
64
-# @return str
65
-def _generate_filename_from_token(token):
66
-    return Settings.sessions.file_template % token
67
-
68
-
69
-## @brief Defines a session file path from a token
70
-# @param token str
71
-# @return str
72
-def _generate_filepath_from_token(token):
73
-    return os.path.join(Settings.sessions.directory, Settings.sessions.file_template) % token
74
-
75
-
76 62
 ## @brief Returns the session's last modification timestamp
77 63
 # @param token str
78 64
 # @return float
@@ -86,7 +72,7 @@ def _get_session_last_modified(token):
86 72
 ## @brief Registers the session in the active sessions' list
87 73
 # @param session LodelSession
88 74
 def _register_session(token):
89
-    __sessions[token] = os.path.join(Settings.sessions.directory, _generate_filename_from_token(token))
75
+    __sessions[token] = os.path.join(Settings.sessions.directory, Settings.sessions.file_template % token)
90 76
     
91 77
     
92 78
 ## @brief Session store's garbage collector

Loading…
Cancel
Save