Index: branches/feature-module-update/data/class/util/SC_Utils.php
===================================================================
--- branches/feature-module-update/data/class/util/SC_Utils.php	(revision 15155)
+++ branches/feature-module-update/data/class/util/SC_Utils.php	(revision 15176)
@@ -1425,25 +1425,4 @@
     }
 
-    /* 商品規格情報の取得 */
-    function sfGetProductsClass($arrID) {
-        list($product_id, $classcategory_id1, $classcategory_id2) = $arrID;
-
-        if($classcategory_id1 == "") {
-            $classcategory_id1 = '0';
-        }
-        if($classcategory_id2 == "") {
-            $classcategory_id2 = '0';
-        }
-
-        // 商品規格取得
-        $objQuery = new SC_Query();
-        $col = "product_id, deliv_fee, name, product_code, main_list_image, main_image, price01, price02, point_rate, product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, sale_limit, sale_unlimited";
-        $table = "vw_product_class AS prdcls";
-        $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?";
-        $objQuery->setorder("rank1 DESC, rank2 DESC");
-        $arrRet = $objQuery->select($col, $table, $where, array($product_id, $classcategory_id1, $classcategory_id2));
-        return $arrRet[0];
-    }
-
     /* 集計情報を元に最終計算 */
     function sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer = "") {
@@ -1467,5 +1446,5 @@
         if (OPTION_DELIV_FEE == 1) {
             // 送料の合計を計算する
-            $arrData['deliv_fee']+= sfGetDelivFee($arrData['deliv_pref'], $arrData['payment_id']);
+            $arrData['deliv_fee']+= SC_Utils::sfGetDelivFee($arrData['deliv_pref'], $arrData['payment_id']);
         }
 
@@ -1492,5 +1471,5 @@
         $arrData['payment_total'] = $arrData['total'] - ($arrData['use_point'] * POINT_VALUE);
         // 加算ポイントの計算
-        $arrData['add_point'] = sfGetAddPoint($objPage->tpl_total_point, $arrData['use_point'], $arrInfo);
+        $arrData['add_point'] = SC_Utils::sfGetAddPoint($objPage->tpl_total_point, $arrData['use_point'], $arrInfo);
 
         if($objCustomer != "") {
@@ -1507,96 +1486,4 @@
 
         return $arrData;
-    }
-
-    /* カート内商品の集計処理 */
-    function sfTotalCart($objPage, $objCartSess, $arrInfo) {
-        // 規格名一覧
-        $arrClassName = sfGetIDValueList("dtb_class", "class_id", "name");
-        // 規格分類名一覧
-        $arrClassCatName = sfGetIDValueList("dtb_classcategory", "classcategory_id", "name");
-
-        $objPage->tpl_total_pretax = 0;		// 費用合計(税込み)
-        $objPage->tpl_total_tax = 0;		// 消費税合計
-        $objPage->tpl_total_point = 0;		// ポイント合計
-
-        // カート内情報の取得
-        $arrCart = $objCartSess->getCartList();
-        $max = count($arrCart);
-        $cnt = 0;
-
-        for ($i = 0; $i < $max; $i++) {
-            // 商品規格情報の取得
-            $arrData = sfGetProductsClass($arrCart[$i]['id']);
-            $limit = "";
-            // DBに存在する商品
-            if (count($arrData) > 0) {
-
-                // 購入制限数を求める。
-                if ($arrData['stock_unlimited'] != '1' && $arrData['sale_unlimited'] != '1') {
-                    if($arrData['sale_limit'] < $arrData['stock']) {
-                        $limit = $arrData['sale_limit'];
-                    } else {
-                        $limit = $arrData['stock'];
-                    }
-                } else {
-                    if ($arrData['sale_unlimited'] != '1') {
-                        $limit = $arrData['sale_limit'];
-                    }
-                    if ($arrData['stock_unlimited'] != '1') {
-                        $limit = $arrData['stock'];
-                    }
-                }
-
-                if($limit != "" && $limit < $arrCart[$i]['quantity']) {
-                    // カート内商品数を制限に合わせる
-                    $objCartSess->setProductValue($arrCart[$i]['id'], 'quantity', $limit);
-                    $quantity = $limit;
-                    $objPage->tpl_message = "※「" . $arrData['name'] . "」は販売制限しております、一度にこれ以上の購入はできません。";
-                } else {
-                    $quantity = $arrCart[$i]['quantity'];
-                }
-
-                $objPage->arrProductsClass[$cnt] = $arrData;
-                $objPage->arrProductsClass[$cnt]['quantity'] = $quantity;
-                $objPage->arrProductsClass[$cnt]['cart_no'] = $arrCart[$i]['cart_no'];
-                $objPage->arrProductsClass[$cnt]['class_name1'] = $arrClassName[$arrData['class_id1']];
-                $objPage->arrProductsClass[$cnt]['class_name2'] = $arrClassName[$arrData['class_id2']];
-                $objPage->arrProductsClass[$cnt]['classcategory_name1'] = $arrClassCatName[$arrData['classcategory_id1']];
-                $objPage->arrProductsClass[$cnt]['classcategory_name2'] = $arrClassCatName[$arrData['classcategory_id2']];
-
-                // 画像サイズ
-                list($image_width, $image_height) = getimagesize(IMAGE_SAVE_DIR . basename($objPage->arrProductsClass[$cnt]["main_image"]));
-                $objPage->arrProductsClass[$cnt]["tpl_image_width"] = $image_width + 60;
-                $objPage->arrProductsClass[$cnt]["tpl_image_height"] = $image_height + 80;
-
-                // 価格の登録
-                if ($arrData['price02'] != "") {
-                    $objCartSess->setProductValue($arrCart[$i]['id'], 'price', $arrData['price02']);
-                    $objPage->arrProductsClass[$cnt]['uniq_price'] = $arrData['price02'];
-                } else {
-                    $objCartSess->setProductValue($arrCart[$i]['id'], 'price', $arrData['price01']);
-                    $objPage->arrProductsClass[$cnt]['uniq_price'] = $arrData['price01'];
-                }
-                // ポイント付与率の登録
-                $objCartSess->setProductValue($arrCart[$i]['id'], 'point_rate', $arrData['point_rate']);
-                // 商品ごとの合計金額
-                $objPage->arrProductsClass[$cnt]['total_pretax'] = $objCartSess->getProductTotal($arrInfo, $arrCart[$i]['id']);
-                // 送料の合計を計算する
-                $objPage->tpl_total_deliv_fee+= ($arrData['deliv_fee'] * $arrCart[$i]['quantity']);
-                $cnt++;
-            } else {
-                // DBに商品が見つからない場合はカート商品の削除
-                $objCartSess->delProductKey('id', $arrCart[$i]['id']);
-            }
-        }
-
-        // 全商品合計金額(税込み)
-        $objPage->tpl_total_pretax = $objCartSess->getAllProductsTotal($arrInfo);
-        // 全商品合計消費税
-        $objPage->tpl_total_tax = $objCartSess->getAllProductsTax($arrInfo);
-        // 全商品合計ポイント
-        $objPage->tpl_total_point = $objCartSess->getAllProductsPoint();
-
-        return $objPage;
     }
 
@@ -2071,5 +1958,5 @@
     function sfGetUniqRandomId($head = "") {
         // 予測されないようにランダム文字列を付与する。
-        $random = gfMakePassword(8);
+        $random = GC_Utils_Ex::gfMakePassword(8);
         // 同一ホスト内で一意なIDを生成
         $id = uniqid($head);
