Skip to content

Commit a1b9e98

Browse files
committed
opencl: Remove unused function getNumDeviceWithEmptyScore
This fixes compiler warnings. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent f8bc09a commit a1b9e98

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

opencl/opencl_device_selection.h

-14
Original file line numberDiff line numberDiff line change
@@ -578,19 +578,5 @@ static ds_status readProfileFromFile(ds_profile* profile,
578578
return status;
579579
}
580580

581-
static ds_status getNumDeviceWithEmptyScore(ds_profile* profile,
582-
unsigned int* num) {
583-
unsigned int i;
584-
if (profile == NULL || num==NULL)
585-
return DS_MEMORY_ERROR;
586-
*num=0;
587-
for (i = 0; i < profile->numDevices; i++) {
588-
if (profile->devices[i].score == NULL) {
589-
(*num)++;
590-
}
591-
}
592-
return DS_SUCCESS;
593-
}
594-
595581
#endif
596582
#endif

0 commit comments

Comments
 (0)