- controlapi: remove commented code

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-12-26 23:53:50 +01:00
committed by Thilo Graf
parent 696f7e81e8
commit 275fbb7c4f

View File

@@ -2159,15 +2159,10 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
if(screenshot){
screenshot->EnableOSD(enableOSD);
screenshot->EnableVideo(enableVideo);
#if 0
screenshot->Start();
hh->SendOk(); // FIXME what if screenshot->Start() failed?
#else
if (screenshot->StartSync())
hh->SendOk();
else
hh->SendError();
#endif
delete screenshot;
}
}