Browse Source

Remove not needed files

Vova Tkach 6 years ago
parent
commit
ef1aa61196
3 changed files with 2 additions and 36 deletions
  1. 0 5
      engine/backend.go
  2. 2 2
      engine/engine.go
  3. 0 29
      engine/frontend.go

+ 0 - 5
engine/backend.go

@@ -1,5 +0,0 @@
-package engine
-
-func (this *Engine) BackEnd() bool {
-	return this.Mods.BackEnd(this.Wrap)
-}

+ 2 - 2
engine/engine.go

@@ -79,7 +79,7 @@ func (this *Engine) Process() bool {
 
 	// Separated logic
 	if this.Wrap.IsBackend {
-		return this.BackEnd()
+		return this.Mods.BackEnd(this.Wrap)
 	}
-	return this.FrontEnd()
+	return this.Mods.FrontEnd(this.Wrap)
 }

+ 0 - 29
engine/frontend.go

@@ -1,29 +0,0 @@
-package engine
-
-/*
-import (
-	"fmt"
-)
-*/
-
-func (this *Engine) FrontEnd() bool {
-	/*
-		if this.Wrap.R.URL.Path == "/" {
-			this.Wrap.W.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
-			this.Wrap.W.Header().Set("Content-Type", "text/html")
-
-			counter := this.Wrap.S.GetInt("counter", 0)
-			// this.Wrap.LogAccess(fmt.Sprintf("Counter value was: %d", counter))
-
-			this.Wrap.W.Write([]byte(`Logic -> (` + fmt.Sprintf("%d", counter) + `)`))
-
-			counter++
-			this.Wrap.S.SetInt("counter", counter)
-			// this.Wrap.LogAccess(fmt.Sprintf("Counter value now: %d", counter))
-
-			return true
-		}
-	*/
-	// return false
-	return this.Mods.FrontEnd(this.Wrap)
-}