Skip to content

Commit

Permalink
[libUPnP] Remove unused headers from Platinum/Source/Extras
Browse files Browse the repository at this point in the history
No code from the Extras directory is compiled, so it is unlikely that
any of the interfaces will be used. Remove the headers and remove
Platinum/Source/Extras from the list of include directories.

Signed-off-by: Olaf Hering <[email protected]>
  • Loading branch information
olafhering committed Mar 28, 2019
1 parent 52e07cf commit 4f8bc73
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
1 change: 0 additions & 1 deletion lib/libUPnP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ target_include_directories(upnp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
Platinum/Source/Devices/MediaConnect
Platinum/Source/Devices/MediaRenderer
Platinum/Source/Devices/MediaServer
Platinum/Source/Extras
Neptune/Source/Core
Neptune/Source/System/Posix)
if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
Expand Down
7 changes: 0 additions & 7 deletions lib/libUPnP/Platinum/Source/Platinum/Platinum.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,4 @@ cross-platform logging system.
#include "PltXbox360.h"
#include "PltMediaConnect.h"

#include "PltDownloader.h"
#include "PltStreamPump.h"
#include "PltFrameBuffer.h"
#include "PltFrameServer.h"
#include "PltFrameStream.h"
#include "PltRingBufferStream.h"

#endif /* _PLATINUM_H_ */
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From: Olaf Hering <[email protected]>
Date: Thu, 28 Mar 2019 18:07:31 +0100
Subject: [libUPnP] Remove unused headers from Platinum/Source/Extras

No code from the Extras directory is compiled, so it is unlikely that
any of the interfaces will be used. Remove the headers and remove
Platinum/Source/Extras from the list of include directories.

Signed-off-by: Olaf Hering <[email protected]>
---
lib/libUPnP/Platinum/Source/Platinum/Platinum.h | 7 -------
1 file changed, 7 deletions(-)

diff --git a/lib/libUPnP/Platinum/Source/Platinum/Platinum.h b/lib/libUPnP/Platinum/Source/Platinum/Platinum.h
index a7f47a6241..970cb8bd95 100644
--- a/lib/libUPnP/Platinum/Source/Platinum/Platinum.h
+++ b/lib/libUPnP/Platinum/Source/Platinum/Platinum.h
@@ -108,11 +108,4 @@ cross-platform logging system.
#include "PltXbox360.h"
#include "PltMediaConnect.h"

-#include "PltDownloader.h"
-#include "PltStreamPump.h"
-#include "PltFrameBuffer.h"
-#include "PltFrameServer.h"
-#include "PltFrameStream.h"
-#include "PltRingBufferStream.h"
-
#endif /* _PLATINUM_H_ */
1 change: 0 additions & 1 deletion xbmc/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ if(ENABLE_UPNP)
${CMAKE_SOURCE_DIR}/lib/libUPnP/Platinum/Source/Devices/MediaConnect
${CMAKE_SOURCE_DIR}/lib/libUPnP/Platinum/Source/Devices/MediaRenderer
${CMAKE_SOURCE_DIR}/lib/libUPnP/Platinum/Source/Devices/MediaServer
${CMAKE_SOURCE_DIR}/lib/libUPnP/Platinum/Source/Extras
${CMAKE_SOURCE_DIR}/lib/libUPnP/Neptune/Source/System/Posix
${CMAKE_SOURCE_DIR}/lib/libUPnP/Neptune/Source/Core)
endif()

0 comments on commit 4f8bc73

Please sign in to comment.