From dbed4affe86a77bb94733fd568e4d01ecea2a770 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Tue, 14 Apr 2015 20:42:15 +0100 Subject: [PATCH] Update Nyquist.cpp Remove earlier ifdef'd version of time/date property --- src/effects/nyquist/Nyquist.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 64f59b60e..3d3f406d1 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -51,10 +51,6 @@ effects from this one class. #include #include -#if defined EXPERIMENTAL_NYQUIST_TIME_PROPERTY -#include -#endif - #include "../../AudacityApp.h" #include "../../FileNames.h" #include "../../Internat.h" @@ -515,31 +511,6 @@ bool EffectNyquist::Process() } mProps += wxString::Format(wxT("(putprop '*SYSTEM-DIR* (list %s) 'PLUGIN)\n"), list.RemoveLast().c_str()); -#if defined EXPERIMENTAL_NYQUIST_TIME_PROPERTY - // Date and time: - wxDateTime now = wxDateTime::Now(); - int year = now.GetYear(); - int doy = now.GetDayOfYear(); - int dom = now.GetDay(); - // enumerated constants - wxDateTime::Month month = now.GetMonth(); - wxDateTime::WeekDay day = now.GetWeekDay(); - - // Date/time as a list: year, day of year, hour, minute, seconds - mProps += wxString::Format(wxT("(setf *SYSTEM-TIME* (list %d %d %d %d %d))\n"), - year, doy, now.GetHour(), now.GetMinute(), now.GetSecond()); - - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'DATE)\n"), now.FormatDate().c_str()); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'TIME)\n"), now.FormatTime().c_str()); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'ISO-DATE)\n"), now.FormatISODate().c_str()); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'ISO-TIME)\n"), now.FormatISOTime().c_str()); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'YEAR)\n"), year); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'DAY)\n"), dom); // day of month - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* %d 'MONTH)\n"), month); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'MONTH-NAME)\n"), now.GetMonthName(month).c_str()); - mProps += wxString::Format(wxT("(putprop '*SYSTEM-TIME* \"%s\" 'DAY-NAME)\n"), now.GetWeekDayName(day).c_str()); -#endif - // Date and time: wxDateTime now = wxDateTime::Now();