From 03489ff9b05039714795da549dec39f8b19eb0d8 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Wed, 15 Aug 2018 22:59:58 +0200
Subject: [PATCH] bs1770gain may not be needed anymore

---
 importer/config.go          |  5 -----
 importer/fetch_converter.go | 25 -------------------------
 2 files changed, 30 deletions(-)

diff --git a/importer/config.go b/importer/config.go
index 08c64cc..0355264 100644
--- a/importer/config.go
+++ b/importer/config.go
@@ -34,7 +34,6 @@ type ConverterType int
 const (
 	ConvNull ConverterType = iota
 	ConvFFmpeg
-	ConvFFmpegBS1770
 )
 
 func (c *ConverterType) String() string {
@@ -43,8 +42,6 @@ func (c *ConverterType) String() string {
 		return "null"
 	case ConvFFmpeg:
 		return "ffmpeg"
-	case ConvFFmpegBS1770:
-		return "ffmpeg+bs1770"
 	}
 	return "unknown"
 }
@@ -55,8 +52,6 @@ func (c *ConverterType) fromString(str string) error {
 		*c = ConvNull
 	case "ffmpeg":
 		*c = ConvFFmpeg
-	case "ffmpeg+bs1770":
-		*c = ConvFFmpegBS1770
 	default:
 		return errors.New("invalid converter: '" + str + "'")
 	}
diff --git a/importer/fetch_converter.go b/importer/fetch_converter.go
index 0a0570c..4d33c85 100644
--- a/importer/fetch_converter.go
+++ b/importer/fetch_converter.go
@@ -164,28 +164,3 @@ func (c *ffmpegConverter) Wait() (loudnessCorr float64, log []string, err error)
 	}
 	return 0, c.log.log, err
 }
-
-//******* FFmpeg+BS1770
-
-type ffmpegBS1770Converter struct {
-	job *Job
-	log []string
-}
-
-func newFFmpegBS1770Converter(job *Job) (c *ffmpegBS1770Converter, err error) {
-	c = &ffmpegBS1770Converter{job: job}
-	return
-}
-
-func (c *ffmpegBS1770Converter) Write(p []byte) (n int, err error) {
-	return 0, ErrNotImplemented
-}
-
-func (c *ffmpegBS1770Converter) Close() (err error) {
-	return ErrNotImplemented
-}
-
-func (c *ffmpegBS1770Converter) Wait() (loudnessCorr float64, log []string, err error) {
-	c.log = append(c.log, "ERROR: not implemented")
-	return 0, c.log, ErrNotImplemented
-}
-- 
GitLab