diff options
Diffstat (limited to 'test/camera/camera_test.cpp')
-rw-r--r-- | test/camera/camera_test.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/camera/camera_test.cpp b/test/camera/camera_test.cpp index 1609c4b0..24ff5fe0 100644 --- a/test/camera/camera_test.cpp +++ b/test/camera/camera_test.cpp @@ -45,21 +45,3 @@ void CameraTest::cleanup() cm_->stop(); }; - -bool CameraTest::configurationValid(const std::map<Stream *, StreamConfiguration> &config) const -{ - /* Test that the configuration is not empty. */ - if (config.empty()) - return false; - - /* Test that configuration is valid. */ - for (auto const &it : config) { - const StreamConfiguration &conf = it.second; - - if (conf.width == 0 || conf.height == 0 || - conf.pixelFormat == 0 || conf.bufferCount == 0) - return false; - } - - return true; -} |