OSDN Git Service

default cookie処理クラス
[coroid/inqubus.git] / frontend / src / saccubus / net / BrowserInfo.java
index b3749f5..52436c2 100644 (file)
@@ -53,20 +53,6 @@ public class BrowserInfo {
             case IE6:
                 user_session = GetUserSessionFromIE6(NICOVIDEO_URL);
                 break;
-            case MSIE:
-                user_session = GetUserSessionFromMSIE();
-                break;
-            case Firefox:
-                user_session = GetUserSessionFromFilefox4();
-                if (!user_session.isEmpty()) {
-                    break;
-                }
-            case Firefox3:
-                user_session = GetUserSessionFromFilefox3();
-                break;
-            case Chrome:
-                user_session = GetUserSesionChrome();
-                break;
             case Chromium:
                 user_session = GetUserSesionChromium();
                 break;
@@ -80,36 +66,6 @@ public class BrowserInfo {
         return user_session;
     }
 
-    /**
-     *
-     * @param fileOrDir fullname of file or directory
-     * @return
-     */
-    public String getUserSessionOther(String fileOrDir) {
-        String user_session = "";
-        try {
-            if (Path.isDirectory(fileOrDir)) {
-                // Directory Type like MSIE
-                user_session = GetUserSessionFromDirectory(fileOrDir);
-                return user_session;
-            }
-            if (Path.isFile(fileOrDir)) {
-                // File Type like Firefox3
-                String dataStr = Path.ReadAllText(fileOrDir, "UTF-8");
-                user_session = CutUserSession(dataStr, fileOrDir);
-                return user_session;
-            }
-            return "";
-        } catch (Exception e) {
-            e.printStackTrace();
-            return "";
-        } finally {
-            if (!user_session.isEmpty()) {
-                validBrowser = BrowserCookieKind.Other;
-            }
-        }
-    }
-
     /// <summary>
     /// IE6 から user_session を取得
     /// </summary>