Vova Tkach 5 years ago
parent
commit
3878a5276a
4 changed files with 0 additions and 14 deletions
  1. 0 1
      engine/basket/basket.go
  2. 0 4
      engine/basket/currency.go
  3. 0 4
      engine/basket/product.go
  4. 0 5
      engine/basket/session.go

+ 0 - 1
engine/basket/basket.go

@@ -28,7 +28,6 @@ func (this *Basket) Info(host, session_id string, db *sqlw.DB, currency_id int)
 	defer this.Unlock()
 	defer this.Unlock()
 	if h, ok := this.hosts[host]; ok == true {
 	if h, ok := this.hosts[host]; ok == true {
 		if s, ok := h.sessions[session_id]; ok == true {
 		if s, ok := h.sessions[session_id]; ok == true {
-			s.Info(db, currency_id)
 			return s.String()
 			return s.String()
 		} else {
 		} else {
 			return (&dResponse{IsError: false, Msg: "basket_is_empty", Message: ""}).String()
 			return (&dResponse{IsError: false, Msg: "basket_is_empty", Message: ""}).String()

+ 0 - 4
engine/basket/currency.go

@@ -1,9 +1,5 @@
 package basket
 package basket
 
 
-// import (
-// 	"encoding/json"
-// )
-
 type currency struct {
 type currency struct {
 	Id          int     `json:"id"`
 	Id          int     `json:"id"`
 	Name        string  `json:"name"`
 	Name        string  `json:"name"`

+ 0 - 4
engine/basket/product.go

@@ -1,9 +1,5 @@
 package basket
 package basket
 
 
-// import (
-// 	"encoding/json"
-// )
-
 type product struct {
 type product struct {
 	Id       int     `json:"id"`
 	Id       int     `json:"id"`
 	Name     string  `json:"name"`
 	Name     string  `json:"name"`

+ 0 - 5
engine/basket/session.go

@@ -23,11 +23,6 @@ func (this *session) String() string {
 	return string(json)
 	return string(json)
 }
 }
 
 
-func (this *session) Info(db *sqlw.DB, currency_id int) {
-	// Update prices
-	// Update total
-}
-
 func (this *session) Plus(db *sqlw.DB, product_id int) {
 func (this *session) Plus(db *sqlw.DB, product_id int) {
 	if p, ok := this.Products[product_id]; ok == true {
 	if p, ok := this.Products[product_id]; ok == true {
 		p.Quantity++
 		p.Quantity++