diff --git a/examples/signal_2xh1/main.go b/examples/signal_2xh1/main.go index a2cfa8f..9881e00 100644 --- a/examples/signal_2xh1/main.go +++ b/examples/signal_2xh1/main.go @@ -9,7 +9,6 @@ import ( "joylink.club/rtsssimulation/fi" "joylink.club/rtsssimulation/repository" "joylink.club/rtsssimulation/repository/model/proto" - "log" "log/slog" "os" "time" @@ -52,12 +51,6 @@ func main() { time.Sleep(3 * time.Second) sim.Close() } -func worldLog(w ecs.World, logInfo string) { - ecs.Request(w, func() any { - log.Println(logInfo) - return nil - }) -} func addProtoSignal2XH1(r *proto.Repository) { //相关继电器 r.Relays = append(r.Relays, &proto.Relay{Id: "2xh1-ddj", Code: consts.SIGNAL_DDJ, Model: proto.Relay_JWXC_1700})