Drop virPerfGetEventFd

This function is not used anywhere. Moreover, the code that would
use lives in virperf.c and therefore has access to the FD anyway.
Well, for instance virPerfReadEvent is doing just that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2016-06-03 10:11:59 +02:00
parent 43395f190b
commit 89ef1589a2
3 changed files with 0 additions and 23 deletions

View File

@ -2083,7 +2083,6 @@ virPerfEventIsEnabled;
virPerfEventTypeFromString;
virPerfEventTypeToString;
virPerfFree;
virPerfGetEventFd;
virPerfNew;
virPerfReadEvent;

View File

@ -241,16 +241,6 @@ bool virPerfEventIsEnabled(virPerfPtr perf,
return event->enabled;
}
int virPerfGetEventFd(virPerfPtr perf,
virPerfEventType type)
{
virPerfEventPtr event = virPerfGetEvent(perf, type);
if (event == NULL)
return false;
return event->fd;
}
int
virPerfReadEvent(virPerfPtr perf,
virPerfEventType type,
@ -299,15 +289,6 @@ virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED,
return false;
}
int
virPerfGetEventFd(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type ATTRIBUTE_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform"));
return -1;
}
int
virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type ATTRIBUTE_UNUSED,

View File

@ -51,9 +51,6 @@ int virPerfEventDisable(virPerfPtr perf,
bool virPerfEventIsEnabled(virPerfPtr perf,
virPerfEventType type);
int virPerfGetEventFd(virPerfPtr perf,
virPerfEventType type);
int virPerfReadEvent(virPerfPtr perf,
virPerfEventType type,
uint64_t *value);