From 35605ee7639fd79e5d60360021b9d63a16aa3d08 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 26 Feb 2020 04:03:10 +0100 Subject: [PATCH] Remove easter-egg Every day can be x-mas day, how else can we be lovers? :) --- libs/plugins/reasonablesynth.lv2/lv2.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/libs/plugins/reasonablesynth.lv2/lv2.c b/libs/plugins/reasonablesynth.lv2/lv2.c index 03d4b8646d..231c139982 100644 --- a/libs/plugins/reasonablesynth.lv2/lv2.c +++ b/libs/plugins/reasonablesynth.lv2/lv2.c @@ -99,18 +99,10 @@ instantiate (const LV2_Descriptor* descriptor, self->synth = synth_alloc(); synth_init(self->synth, rate); -#ifndef PLATFORM_WINDOWS // easter egg is for sane platforms with native support for localtime_r only - if (!getenv("HEATHEN")) { - struct tm date; - time_t now; - time(&now); - localtime_r(&now, &date); - if (getenv("ITSXMAS") || (date.tm_mon == 11 /*dec*/ && date.tm_mday == 25)) { - printf("reasonable synth.lv2 says: happy holidays!\n"); - self->xmas = true; - } + if (getenv("ITSXMAS")) { + printf("reasonable synth.lv2 says: happy holidays!\n"); + self->xmas = true; } -#endif return (LV2_Handle)self; }