Skip to content

Commit 0053ee8

Browse files
committed
remove embedded_autoextract, it has never been used
1 parent f2cf0ca commit 0053ee8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

main.go

-11
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
cors "github.com/andela/gin-cors"
3636
"github.com/arduino/arduino-create-agent/systray"
3737
"github.com/arduino/arduino-create-agent/tools"
38-
"github.com/arduino/arduino-create-agent/utilities"
3938
v2 "github.com/arduino/arduino-create-agent/v2"
4039
"github.com/gin-gonic/gin"
4140
"github.com/go-ini/ini"
@@ -47,7 +46,6 @@ import (
4746
var (
4847
version = "x.x.x-dev" //don't modify it, Jenkins will take care
4948
git_revision = "xxxxxxxx" //don't modify it, Jenkins will take care
50-
embedded_autoextract = false
5149
port string
5250
portSSL string
5351
requiredToolsAPILevel = "v1"
@@ -186,15 +184,6 @@ func loop() {
186184
src, _ := osext.Executable()
187185
dest := filepath.Dir(src)
188186

189-
if embedded_autoextract {
190-
// save the config.ini (if it exists)
191-
if _, err := os.Stat(filepath.Join(dest, "config.ini")); os.IsNotExist(err) {
192-
log.Println("First run, unzipping self")
193-
err := utilities.Unzip(src, dest)
194-
log.Println("Self extraction, err:", err)
195-
}
196-
}
197-
198187
// Parse ini config
199188
args, err := parseIni(filepath.Join(dest, "config.ini"))
200189
if err != nil {

0 commit comments

Comments
 (0)