clean up commented out sections

This commit is contained in:
iadgovuser58 2024-06-21 07:52:22 -04:00
parent 0ffcd09cea
commit d9a58dd766

View File

@ -35,10 +35,6 @@ public class EvEfiSpdmDeviceSecurityEvent {
* Signature (text) data. * Signature (text) data.
*/ */
private String signature = ""; private String signature = "";
// /**
// * True if the event is a DEVICE_SECURITY_EVENT_DATA or ..DATA2.
// */
// private boolean bSpdmDeviceSecurityEventData = false;
/** /**
* Human readable description of the data within this DEVICE_SECURITY_EVENT_DATA/..DATA2 event. * Human readable description of the data within this DEVICE_SECURITY_EVENT_DATA/..DATA2 event.
*/ */
@ -58,7 +54,6 @@ public class EvEfiSpdmDeviceSecurityEvent {
signature = signature.replaceAll("[^\\P{C}\t\r\n]", ""); // remove null characters signature = signature.replaceAll("[^\\P{C}\t\r\n]", ""); // remove null characters
if (signature.contains("SPDM Device Sec")) { // implies Device Security event if (signature.contains("SPDM Device Sec")) { // implies Device Security event
// bSpdmDeviceSecurityEventData = true;
spdmInfo = " Signature = SPDM Device Sec"; spdmInfo = " Signature = SPDM Device Sec";
@ -80,34 +75,16 @@ public class EvEfiSpdmDeviceSecurityEvent {
} }
} }
else { else {
spdmInfo = " Signature = Undetermined value: " + signature; spdmInfo = " Signature = Undetermined value: " + signature;
} }
} }
// /**
// * Determines if this event is a DeviceSecurityEventData.
// *
// * @return true of the event is a DeviceSecurityEventData.
// */
// public boolean isSpdmDeviceSecurityEventData() {
// return bSpdmDeviceSecurityEventData;
// }
/** /**
* Returns a description of this event. * Returns a description of this event.
* *
* @return Human readable description of this event. * @return Human readable description of this event.
*/ */
public String toString() { public String toString() {
// spdmInfo = " Signature = SPDM Device Sec" + spdmInfo;
// if (bSpdmDeviceSecurityEventData) {
// spdmInfo = " Signature = SPDM Device Sec" + spdmInfo;
// } else {
// spdmInfo = "EV_EFI_SPDM_FIRMWARE_BLOB event named " + signature
// + " encountered but support for processing it has not been added to this application.\n";
// }
return spdmInfo; return spdmInfo;
} }
} }