From 1b84c89465a97fef4affff31b8c015107702bb2d Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 1 Oct 2017 15:38:36 +0200 Subject: [PATCH] Remove Release() method not needed thanks to Close() Signed-off-by: deadprogram --- videoio.cpp | 4 ---- videoio.go | 5 ----- videoio.h | 1 - 3 files changed, 10 deletions(-) diff --git a/videoio.cpp b/videoio.cpp index ae8595e7..8b0950e2 100644 --- a/videoio.cpp +++ b/videoio.cpp @@ -17,10 +17,6 @@ int VideoCapture_OpenDevice(VideoCapture v, int device) { return v->open(device); } -void VideoCapture_Release(VideoCapture v) { - v->release(); -} - void VideoCapture_Set(VideoCapture v, int prop, int param) { v->set(prop, param); } diff --git a/videoio.go b/videoio.go index fc573a57..20ae1ba6 100644 --- a/videoio.go +++ b/videoio.go @@ -40,11 +40,6 @@ func (v *VideoCapture) Close() error { return nil } -// Release video capture object. -func (v *VideoCapture) Release() { - C.VideoCapture_Release(v.p) -} - // Set parameter with property (=key). func (v *VideoCapture) Set(prop int, param int) { C.VideoCapture_Set(v.p, C.int(prop), C.int(param)) diff --git a/videoio.h b/videoio.h index 0d93f0f9..2f723c65 100644 --- a/videoio.h +++ b/videoio.h @@ -21,7 +21,6 @@ VideoCapture VideoCapture_New(); void VideoCapture_Close(VideoCapture v); int VideoCapture_Open(VideoCapture v, const char* uri); int VideoCapture_OpenDevice(VideoCapture v, int device); -void VideoCapture_Release(VideoCapture v); void VideoCapture_Set(VideoCapture v, int prop, int param); int VideoCapture_IsOpened(VideoCapture v); int VideoCapture_Read(VideoCapture v, Mat buf);