mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Remove RemoveSourceProperty.
This commit is contained in:
@@ -163,10 +163,6 @@ CS_Property CS_CreateSourcePropertyCallback(
|
||||
void CS_SetSourceEnumPropertyChoices(CS_Source source, CS_Property property,
|
||||
const char** choices, int count,
|
||||
CS_Status* status);
|
||||
void CS_RemoveSourceProperty(CS_Source source, CS_Property property,
|
||||
CS_Status* status);
|
||||
void CS_RemoveSourcePropertyByName(CS_Source source, const char* name,
|
||||
CS_Status* status);
|
||||
|
||||
//
|
||||
// Sink Creation Functions
|
||||
|
||||
@@ -151,10 +151,6 @@ CS_Property CreateSourcePropertyCallback(
|
||||
void SetSourceEnumPropertyChoices(CS_Source source, CS_Property property,
|
||||
llvm::ArrayRef<std::string> choices,
|
||||
CS_Status* status);
|
||||
void RemoveSourceProperty(CS_Source source, CS_Property property,
|
||||
CS_Status* status);
|
||||
void RemoveSourceProperty(CS_Source source, llvm::StringRef name,
|
||||
CS_Status* status);
|
||||
|
||||
//
|
||||
// Sink Creation Functions
|
||||
|
||||
@@ -261,14 +261,6 @@ class CvSource : public VideoSource {
|
||||
/// @param choices Choices
|
||||
void SetEnumPropertyChoices(const VideoProperty& property,
|
||||
llvm::ArrayRef<std::string> choices);
|
||||
|
||||
/// Remove a property.
|
||||
/// @param property Property
|
||||
void RemoveProperty(const VideoProperty& property);
|
||||
|
||||
/// Remove a property.
|
||||
/// @param name Property name
|
||||
void RemoveProperty(llvm::StringRef name);
|
||||
};
|
||||
|
||||
/// A sink for video that accepts a sequence of frames.
|
||||
|
||||
@@ -231,16 +231,6 @@ inline void CvSource::SetEnumPropertyChoices(
|
||||
SetSourceEnumPropertyChoices(m_handle, property.m_handle, choices, &m_status);
|
||||
}
|
||||
|
||||
inline void CvSource::RemoveProperty(const VideoProperty& property) {
|
||||
m_status = 0;
|
||||
RemoveSourceProperty(m_handle, property.m_handle, &m_status);
|
||||
}
|
||||
|
||||
inline void CvSource::RemoveProperty(llvm::StringRef name) {
|
||||
m_status = 0;
|
||||
RemoveSourceProperty(m_handle, name, &m_status);
|
||||
}
|
||||
|
||||
inline VideoSink::VideoSink(const VideoSink& sink)
|
||||
: m_handle(sink.m_handle == 0 ? 0 : CopySink(sink.m_handle, &m_status)) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user