mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
Fix CID 1395109 (Logically dead code)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ac17663015
commit
6092a8f865
@ -196,12 +196,7 @@ static ds_status initDSProfile(ds_profile** p, const char* version) {
|
||||
profile->devices[next].type = DS_DEVICE_NATIVE_CPU;
|
||||
profile->version = version;
|
||||
|
||||
cleanup:
|
||||
if (status == DS_SUCCESS) {
|
||||
*p = profile;
|
||||
} else {
|
||||
delete profile;
|
||||
}
|
||||
*p = profile;
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -2108,8 +2103,6 @@ static double composeRGBPixelMicroBench(GPUEnv* env,
|
||||
pixDestroy(&pix);
|
||||
}
|
||||
|
||||
// cleanup
|
||||
|
||||
return time;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user