Clear out dead code

This commit is contained in:
Isaac Connor 2022-01-14 14:20:17 -05:00
parent 8b99b15b41
commit eb59b4de7f
1 changed files with 0 additions and 30 deletions

View File

@ -178,18 +178,6 @@ class Event {
return pre_alarm_count; return pre_alarm_count;
} }
static void EmptyPreAlarmFrames() { static void EmptyPreAlarmFrames() {
#if 0
while ( pre_alarm_count > 0 ) {
int i = pre_alarm_count - 1;
delete pre_alarm_data[i].image;
pre_alarm_data[i].image = nullptr;
if ( pre_alarm_data[i].alarm_frame ) {
delete pre_alarm_data[i].alarm_frame;
pre_alarm_data[i].alarm_frame = nullptr;
}
pre_alarm_count--;
}
#endif
pre_alarm_count = 0; pre_alarm_count = 0;
} }
static void AddPreAlarmFrame( static void AddPreAlarmFrame(
@ -198,28 +186,10 @@ class Event {
int score=0, int score=0,
Image *alarm_frame=nullptr Image *alarm_frame=nullptr
) { ) {
#if 0
pre_alarm_data[pre_alarm_count].image = new Image(*image);
pre_alarm_data[pre_alarm_count].timestamp = timestamp;
pre_alarm_data[pre_alarm_count].score = score;
if ( alarm_frame ) {
pre_alarm_data[pre_alarm_count].alarm_frame = new Image(*alarm_frame);
}
#endif
pre_alarm_count++; pre_alarm_count++;
} }
void SavePreAlarmFrames() { void SavePreAlarmFrames() {
#if 0
for ( int i = 0; i < pre_alarm_count; i++ ) {
AddFrame(
pre_alarm_data[i].image,
pre_alarm_data[i].timestamp,
pre_alarm_data[i].score,
pre_alarm_data[i].alarm_frame);
}
#endif
EmptyPreAlarmFrames(); EmptyPreAlarmFrames();
} }
}; };
#endif // ZM_EVENT_H #endif // ZM_EVENT_H