Skip to content

Commit

Permalink
Remove redundant extern in H file
Browse files Browse the repository at this point in the history
  • Loading branch information
TsunFeng committed Aug 28, 2024
1 parent a498b4b commit dac606a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ struct MockAcpiSdtProtocol {
);
};

extern "C" {
extern EFI_ACPI_SDT_PROTOCOL *gAcpiSdtProtocol;
}

MOCK_INTERFACE_DEFINITION (MockAcpiSdtProtocol);
MOCK_FUNCTION_DEFINITION (MockAcpiSdtProtocol, GetAcpiTable, 4, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockAcpiSdtProtocol, RegisterNotify, 2, EFIAPI);
Expand Down
4 changes: 0 additions & 4 deletions MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ struct MockAcpiTableProtocol {
);
};

extern "C" {
extern EFI_ACPI_TABLE_PROTOCOL *gAcpiTableProtocol;
}

MOCK_INTERFACE_DEFINITION (MockAcpiTableProtocol);
MOCK_FUNCTION_DEFINITION (MockAcpiTableProtocol, InstallAcpiTable, 4, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockAcpiTableProtocol, UninstallAcpiTable, 2, EFIAPI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ struct MockFirmwareVolume2Protocol {
);
};

extern "C" {
extern EFI_FIRMWARE_VOLUME2_PROTOCOL *gFirmwareVolume2Protocol;
}

MOCK_INTERFACE_DEFINITION (MockFirmwareVolume2Protocol);
MOCK_FUNCTION_DEFINITION (MockFirmwareVolume2Protocol, GetVolumeAttributes, 2, EFIAPI);
MOCK_FUNCTION_DEFINITION (MockFirmwareVolume2Protocol, SetVolumeAttributes, 2, EFIAPI);
Expand Down

0 comments on commit dac606a

Please sign in to comment.