From 8ceeefd61cf6bca67140815e2e61b5630b282c70 Mon Sep 17 00:00:00 2001
From: flycash <flycash@apache.org>
Date: Mon, 27 Jan 2020 12:10:10 +0800
Subject: [PATCH] Fix review

---
 config/metric_config.go | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/config/metric_config.go b/config/metric_config.go
index 1b0f234f8..e3dacdaad 100644
--- a/config/metric_config.go
+++ b/config/metric_config.go
@@ -17,27 +17,11 @@
 
 package config
 
-import (
-	"github.com/creasty/defaults"
-)
-
 // This is the config struct for all metrics implementation
 type MetricConfig struct {
 	Reporters []string `yaml:"reporters" json:"reporters,omitempty"`
 }
 
-// parse the config from yml
-func (c *MetricConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
-	if err := defaults.Set(c); err != nil {
-		return err
-	}
-	type plain MetricConfig
-	if err := unmarshal((*plain)(c)); err != nil {
-		return err
-	}
-	return nil
-}
-
 // find the MetricConfig
 // if it is nil, create a new one
 func GetMetricConfig() *MetricConfig {
-- 
GitLab