Explorar o código

gui renderer dev...

leonsal %!s(int64=8) %!d(string=hai) anos
pai
achega
979318ae60
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      renderer/renderer.go

+ 2 - 5
renderer/renderer.go

@@ -400,13 +400,10 @@ func (r *Renderer) renderPanel(ipan gui.IPanel) error {
 	return nil
 }
 
+// appendPanel appends the specified panel to the list of panels to render.
+// Currently there is no need to check for duplicates.
 func (r *Renderer) appendPanel(ipan gui.IPanel) {
 
-	for i := 0; i < len(r.panList); i++ {
-		if r.panList[i] == ipan {
-			log.Error("duplicate panel:%p")
-		}
-	}
 	r.panList = append(r.panList, ipan)
 }