Remove easter-egg

Every day can be x-mas day, how else can we be lovers? :)
This commit is contained in:
Robin Gareus 2020-02-26 04:03:10 +01:00
parent 69059d7b1b
commit 35605ee763
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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)) {
if (getenv("ITSXMAS")) {
printf("reasonable synth.lv2 says: happy holidays!\n");
self->xmas = true;
}
}
#endif
return (LV2_Handle)self;
}