From b36f0de337cd7c101ea5a86b42e657c82fee1f1a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 8 May 2020 20:23:35 -0700 Subject: [PATCH] Remove dead code --- server/environment_docker.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/server/environment_docker.go b/server/environment_docker.go index 919f473..fdd4554 100644 --- a/server/environment_docker.go +++ b/server/environment_docker.go @@ -566,8 +566,6 @@ func (d *DockerEnvironment) ensureImageExists(c *client.Client) error { // Creates a new container for the server using all of the data that is currently // available for it. If the container already exists it will be returned. -// -// @todo pull the image being requested if it doesn't exist currently. func (d *DockerEnvironment) Create() error { ctx := context.Background() cli, err := client.NewClientWithOpts(client.FromEnv) @@ -661,17 +659,6 @@ func (d *DockerEnvironment) Create() error { NetworkMode: "pterodactyl_nw", } - // Pretty sure TZ=X in the environment variables negates the need for this - // to happen. Leaving it until I can confirm that works for everything. - // - // if err := mountTimezoneData(hostConf); err != nil { - // if os.IsNotExist(err) { - // zap.S().Warnw("the timezone data path configured does not exist on the system", zap.Error(errors.WithStack(err))) - // } else { - // zap.S().Warnw("failed to mount timezone data into container", zap.Error(errors.WithStack(err))) - // } - // } - if _, err := cli.ContainerCreate(ctx, conf, hostConf, nil, d.Server.Uuid); err != nil { return errors.WithStack(err) }