Index: branches/version-2_5-dev/data/class/SC_Display.php
===================================================================
--- branches/version-2_5-dev/data/class/SC_Display.php	(revision 19814)
+++ branches/version-2_5-dev/data/class/SC_Display.php	(revision 19823)
@@ -34,6 +34,4 @@
     var $device;
 
-    var $autoSet;
-
     /** SC_View インスタンス */
     var $view;
@@ -49,7 +47,6 @@
      */
 
-    function SC_Display($hasPrevURL = true, $autoGenerateHttpHeaders = true) {
+    function SC_Display($hasPrevURL = true) {
         $this->response = new SC_Response_Ex();
-        $this->autoSet = $autoGenerateHttpHeaders;
         if ($hasPrevURL) {
             $this->setPrevURL();
@@ -139,9 +136,11 @@
     /**
      * 機種を判別する。
+     *
      * SC_Display::MOBILE = ガラケー = 1
      * SC_Display::SMARTPHONE = スマホ = 2
      * SC_Display::PC = PC = 10
-     * ※PHP4の為にconstは使っていません。 1がガラケーで、2がスマホで4がPCです。
-     * @return
+     *
+     * @static
+     * @return integer 端末種別ID
      */
     function detectDevice(){
@@ -149,16 +148,11 @@
         $su = new SC_SmartphoneUserAgent();
         $retDevice = 0;
-        if($nu->isMobile()){
-            $retDevice = DEVICE_TYPE_MOBILE;
-        }elseif ($su->isSmartphone()){
-            $retDevice = DEVICE_TYPE_SMARTPHONE;
-        }else{
-            $retDevice = DEVICE_TYPE_PC;
+        if ($nu->isMobile()) {
+            return DEVICE_TYPE_MOBILE;
+        } elseif ($su->isSmartphone()) {
+            return DEVICE_TYPE_SMARTPHONE;
+        } else {
+            return DEVICE_TYPE_PC;
         }
-
-        if($this->autoSet){
-            $this->setDevice($retDevice);
-        }
-        return $retDevice;
     }
 
