Skip to content

Commit

Permalink
motion_processor: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-utkin committed Feb 13, 2025
1 parent eb4c589 commit 990540f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions server/motion_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,24 +854,3 @@ int motion_processor::set_motion_thresh(const char *map, size_t size)

return 0;
}

static void *bc_mproc_thread(void *data)
{
motion_processor *mp = (motion_processor *)data;
mp->run();
return NULL;
}

/*
void motion_processor::start_thread()
{
int ret;
ret = pthread_create(&m_thread, NULL, bc_mproc_thread, this);
if (ret != 0) {
bc_log(Error, "Error starting motion processor thread: %s",
strerror(errno));
return;
}
}
*/
2 changes: 0 additions & 2 deletions server/motion_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class motion_processor : public stream_consumer
void destroy();
void run();

//void start_thread();

private:
AVCodecContext *decode_ctx;
bool destroy_flag;
Expand Down

0 comments on commit 990540f

Please sign in to comment.