Skip to content

Comments

Remove old and unused code#391

Merged
tszumski merged 4 commits intoOpenVisualCloud:mainfrom
tszumski:tszumski-cleanup-deprecated-code
May 29, 2025
Merged

Remove old and unused code#391
tszumski merged 4 commits intoOpenVisualCloud:mainfrom
tszumski:tszumski-cleanup-deprecated-code

Conversation

@tszumski
Copy link
Collaborator

@tszumski tszumski commented May 5, 2025

Remove old and unused code

Copilot AI review requested due to automatic review settings May 5, 2025 08:01
@tszumski tszumski requested review from moleksy and soopel as code owners May 5, 2025 08:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes a large amount of legacy and unused code from the media-proxy project to simplify the codebase.

  • Removed outdated test files, session implementations for RDMA and MTL, and associated header files.
  • Eliminated the legacy API server (TCP) code and proxy context functionality no longer in use.

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
File Description
media-proxy/tests/proxy_context_tests.cc Removed unused test cases for ProxyContext.
media-proxy/src/shm_memif_common.c Removed obsolete shared memory interface functions for memif.
media-proxy/src/session-rdma-tx.cc Removed legacy RDMA TX session implementation.
media-proxy/src/session-rdma-rx.cc Removed legacy RDMA RX session implementation.
media-proxy/src/session-mtl.cc Removed legacy MTL session implementation.
media-proxy/src/session-mtl-st2110-30-tx.cc Removed legacy ST2110-30 TX session for MTL.
media-proxy/src/session-mtl-st2110-30-rx.cc Removed legacy ST2110-30 RX session for MTL.
media-proxy/src/session-mtl-st2110-22-tx.cc Removed legacy ST2110-22 TX session for MTL.
media-proxy/src/session-mtl-st2110-22 rx.cc Removed legacy ST2110-22 RX session for MTL.
media-proxy/src/session-mtl-st2110-20-tx.cc Removed legacy ST2110-20 TX session for MTL.
media-proxy/src/session-mtl-st2110-20-rx.cc Removed legacy ST2110-20 RX session for MTL.
media-proxy/src/session-base.cc Removed base session code no longer used by active sessions.
media-proxy/src/proxy_context.cc Removed full implementation of ProxyContext.
media-proxy/src/media_proxy.cc Cleaned up main function by removing initialization of unused legacy components.
media-proxy/src/api_server_tcp.cc Removed legacy TCP API server code.
media-proxy/include/session-rdma.h Removed header for obsolete RDMA session API.
media-proxy/include/session-mtl.h Removed header for obsolete MTL session API.
media-proxy/include/session-base.h Removed header for base session class no longer referenced.
media-proxy/include/proxy_context.h Removed header for obsolete ProxyContext functionality.
media-proxy/include/api_server_tcp.h Removed header for legacy TCP API server.

Copy link
Collaborator

@MateuszGrabuszynski MateuszGrabuszynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 references that bother me a bit (as commented).

@tszumski tszumski force-pushed the tszumski-cleanup-deprecated-code branch from 35a95f6 to a10f88f Compare May 29, 2025 05:36
Copy link
Collaborator

@MateuszGrabuszynski MateuszGrabuszynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

ko80 and others added 2 commits May 29, 2025 12:00
Hard exiting with exit() is no longer needed after legacy TCP API
support is removed.

Signed-off-by: Konstantin Ilichev <konstantin.ilichev@intel.com>
Copy link
Collaborator

@ko80 ko80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked in my environment with FFmpeg and two Media Proxies.

Looks good.

Copy link
Collaborator

@moleksy moleksy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tszumski tszumski merged commit c462386 into OpenVisualCloud:main May 29, 2025
15 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants