chore: remove some dead code
This commit is contained in:
parent
39009fcdd1
commit
2e82a3d1ed
|
|
@ -185,10 +185,6 @@ func removeNulls(components []*apiv1.DashboardComponent) []*apiv1.DashboardCompo
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func getDashboardComponentContents(dashboard *config.DashboardComponent, rr *DashboardRenderRequest) []*apiv1.DashboardComponent {
|
|
||||||
return getDashboardComponentContentsWithEntity(dashboard, rr, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
func getDashboardComponentContentsWithEntity(dashboard *config.DashboardComponent, rr *DashboardRenderRequest, entity *entities.Entity) []*apiv1.DashboardComponent {
|
func getDashboardComponentContentsWithEntity(dashboard *config.DashboardComponent, rr *DashboardRenderRequest, entity *entities.Entity) []*apiv1.DashboardComponent {
|
||||||
ret := make([]*apiv1.DashboardComponent, 0)
|
ret := make([]*apiv1.DashboardComponent, 0)
|
||||||
rootFieldset := createRootFieldset()
|
rootFieldset := createRootFieldset()
|
||||||
|
|
@ -208,10 +204,6 @@ func createRootFieldset() *apiv1.DashboardComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func processDashboardSubitem(subitem *config.DashboardComponent, rr *DashboardRenderRequest, ret *[]*apiv1.DashboardComponent, rootFieldset *apiv1.DashboardComponent) {
|
|
||||||
processDashboardSubitemWithEntity(subitem, rr, ret, rootFieldset, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
func processDashboardSubitemWithEntity(subitem *config.DashboardComponent, rr *DashboardRenderRequest, ret *[]*apiv1.DashboardComponent, rootFieldset *apiv1.DashboardComponent, entity *entities.Entity) {
|
func processDashboardSubitemWithEntity(subitem *config.DashboardComponent, rr *DashboardRenderRequest, ret *[]*apiv1.DashboardComponent, rootFieldset *apiv1.DashboardComponent, entity *entities.Entity) {
|
||||||
if subitem.Type != "fieldset" {
|
if subitem.Type != "fieldset" {
|
||||||
rootFieldset.Contents = append(rootFieldset.Contents, buildDashboardComponentSimpleWithEntity(subitem, rr, entity))
|
rootFieldset.Contents = append(rootFieldset.Contents, buildDashboardComponentSimpleWithEntity(subitem, rr, entity))
|
||||||
|
|
@ -232,10 +224,6 @@ func appendRootFieldsetIfNeeded(ret []*apiv1.DashboardComponent, rootFieldset *a
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildDashboardComponentSimple(subitem *config.DashboardComponent, rr *DashboardRenderRequest) *apiv1.DashboardComponent {
|
|
||||||
return buildDashboardComponentSimpleWithEntity(subitem, rr, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
func buildDashboardComponentSimpleWithEntity(subitem *config.DashboardComponent, rr *DashboardRenderRequest, entity *entities.Entity) *apiv1.DashboardComponent {
|
func buildDashboardComponentSimpleWithEntity(subitem *config.DashboardComponent, rr *DashboardRenderRequest, entity *entities.Entity) *apiv1.DashboardComponent {
|
||||||
var contents []*apiv1.DashboardComponent
|
var contents []*apiv1.DashboardComponent
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue