From 2646a0a997a463a3d84dc0fca6c0d9b4a200f27e Mon Sep 17 00:00:00 2001 From: Christian Joudrey Date: Sat, 2 Sep 2017 21:55:26 -0400 Subject: [PATCH] Remove unused acceptSignals in migrator --- go/logic/migrator.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/go/logic/migrator.go b/go/logic/migrator.go index ec8d425..9a020e9 100644 --- a/go/logic/migrator.go +++ b/go/logic/migrator.go @@ -10,10 +10,8 @@ import ( "io" "math" "os" - "os/signal" "strings" "sync/atomic" - "syscall" "time" "github.com/github/gh-ost/go/base" @@ -103,21 +101,6 @@ func NewMigrator() *Migrator { return migrator } -// acceptSignals registers for OS signals -func (this *Migrator) acceptSignals() { - c := make(chan os.Signal, 1) - - signal.Notify(c, syscall.SIGHUP) - go func() { - for sig := range c { - switch sig { - case syscall.SIGHUP: - log.Debugf("Received SIGHUP. Reloading configuration") - } - } - }() -} - // initiateHooksExecutor func (this *Migrator) initiateHooksExecutor() (err error) { this.hooksExecutor = NewHooksExecutor()