Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/helpers.go b/helpers.go
index d71f2b2c..17b464d0 100644
--- a/helpers.go
+++ b/helpers.go
@@ -1,21 +1,12 @@
package main
import (
- "io/ioutil"
"net"
"os"
"gitlab.com/gitlab-org/labkit/errortracking"
)
-func readFile(file string) (result []byte) {
- result, err := ioutil.ReadFile(file)
- if err != nil {
- fatal(err, "could not read file")
- }
- return
-}
-
// Be careful: if you let either of the return values get garbage
// collected by Go they will be closed automatically.
func createSocket(addr string) (net.Listener, *os.File) {