Skip to content

Commit

Permalink
Remove unused wrapper methods for various objects
Browse files Browse the repository at this point in the history
These APIs are not exposed at the Go level

Signed-off-by: Daniel P. Berrangé <[email protected]>
  • Loading branch information
berrange committed Jul 30, 2019
1 parent fad8c43 commit 32f23ea
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 112 deletions.
24 changes: 0 additions & 24 deletions domain_snapshot_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,6 @@ virDomainSnapshotFreeWrapper(virDomainSnapshotPtr snapshot,
}
virConnectPtr
virDomainSnapshotGetConnectWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err)
{
virConnectPtr ret = virDomainSnapshotGetConnect(snapshot);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
virDomainPtr
virDomainSnapshotGetDomainWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err)
{
virDomainPtr ret = virDomainSnapshotGetDomain(snapshot);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
const char *
virDomainSnapshotGetNameWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err)
Expand Down
8 changes: 0 additions & 8 deletions domain_snapshot_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ int
virDomainSnapshotFreeWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err);

virConnectPtr
virDomainSnapshotGetConnectWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err);

virDomainPtr
virDomainSnapshotGetDomainWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err);

const char *
virDomainSnapshotGetNameWrapper(virDomainSnapshotPtr snapshot,
virErrorPtr err);
Expand Down
12 changes: 0 additions & 12 deletions interface_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,6 @@ virInterfaceFreeWrapper(virInterfacePtr iface,
}
virConnectPtr
virInterfaceGetConnectWrapper(virInterfacePtr iface,
virErrorPtr err)
{
virConnectPtr ret = virInterfaceGetConnect(iface);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
const char *
virInterfaceGetMACStringWrapper(virInterfacePtr iface,
virErrorPtr err)
Expand Down
4 changes: 0 additions & 4 deletions interface_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ int
virInterfaceFreeWrapper(virInterfacePtr iface,
virErrorPtr err);

virConnectPtr
virInterfaceGetConnectWrapper(virInterfacePtr iface,
virErrorPtr err);

const char *
virInterfaceGetMACStringWrapper(virInterfacePtr iface,
virErrorPtr err);
Expand Down
12 changes: 0 additions & 12 deletions network_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,6 @@ virNetworkGetBridgeNameWrapper(virNetworkPtr network,
}
virConnectPtr
virNetworkGetConnectWrapper(virNetworkPtr net,
virErrorPtr err)
{
virConnectPtr ret = virNetworkGetConnect(net);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
int
virNetworkGetDHCPLeasesWrapper(virNetworkPtr network,
const char *mac,
Expand Down
4 changes: 0 additions & 4 deletions network_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ char *
virNetworkGetBridgeNameWrapper(virNetworkPtr network,
virErrorPtr err);

virConnectPtr
virNetworkGetConnectWrapper(virNetworkPtr net,
virErrorPtr err);

int
virNetworkGetDHCPLeasesWrapper(virNetworkPtr network,
const char *mac,
Expand Down
12 changes: 0 additions & 12 deletions secret_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ virSecretFreeWrapper(virSecretPtr secret,
}
virConnectPtr
virSecretGetConnectWrapper(virSecretPtr secret,
virErrorPtr err)
{
virConnectPtr ret = virSecretGetConnect(secret);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
int
virSecretGetUUIDWrapper(virSecretPtr secret,
unsigned char *uuid,
Expand Down
4 changes: 0 additions & 4 deletions secret_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ int
virSecretFreeWrapper(virSecretPtr secret,
virErrorPtr err);

virConnectPtr
virSecretGetConnectWrapper(virSecretPtr secret,
virErrorPtr err);

int
virSecretGetUUIDWrapper(virSecretPtr secret,
unsigned char *uuid,
Expand Down
12 changes: 0 additions & 12 deletions storage_pool_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ virStoragePoolGetAutostartWrapper(virStoragePoolPtr pool,
}
virConnectPtr
virStoragePoolGetConnectWrapper(virStoragePoolPtr pool,
virErrorPtr err)
{
virConnectPtr ret = virStoragePoolGetConnect(pool);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
int
virStoragePoolGetInfoWrapper(virStoragePoolPtr pool,
virStoragePoolInfoPtr info,
Expand Down
4 changes: 0 additions & 4 deletions storage_pool_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ virStoragePoolGetAutostartWrapper(virStoragePoolPtr pool,
int *autostart,
virErrorPtr err);

virConnectPtr
virStoragePoolGetConnectWrapper(virStoragePoolPtr pool,
virErrorPtr err);

int
virStoragePoolGetInfoWrapper(virStoragePoolPtr pool,
virStoragePoolInfoPtr info,
Expand Down
12 changes: 0 additions & 12 deletions storage_volume_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,6 @@ virStorageVolFreeWrapper(virStorageVolPtr vol,
}
virConnectPtr
virStorageVolGetConnectWrapper(virStorageVolPtr vol,
virErrorPtr err)
{
virConnectPtr ret = virStorageVolGetConnect(vol);
if (!ret) {
virCopyLastError(err);
}
return ret;
}
int
virStorageVolGetInfoWrapper(virStorageVolPtr vol,
virStorageVolInfoPtr info,
Expand Down
4 changes: 0 additions & 4 deletions storage_volume_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ int
virStorageVolFreeWrapper(virStorageVolPtr vol,
virErrorPtr err);

virConnectPtr
virStorageVolGetConnectWrapper(virStorageVolPtr vol,
virErrorPtr err);

int
virStorageVolGetInfoWrapper(virStorageVolPtr vol,
virStorageVolInfoPtr info,
Expand Down

0 comments on commit 32f23ea

Please sign in to comment.