From d8da232d6b3774ded7de19be8db9e1a42db18644 Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Fri, 9 Oct 2020 10:53:42 -0400 Subject: [PATCH] Removed method that is not used. This is task 1 for #238 --- .../src/DeviceInfoCollector.cpp | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/HIRS_ProvisionerTPM2/src/DeviceInfoCollector.cpp b/HIRS_ProvisionerTPM2/src/DeviceInfoCollector.cpp index acfcd511..eb8f8742 100644 --- a/HIRS_ProvisionerTPM2/src/DeviceInfoCollector.cpp +++ b/HIRS_ProvisionerTPM2/src/DeviceInfoCollector.cpp @@ -243,24 +243,3 @@ hirs::pb::OsInfo DeviceInfoCollector::collectOsInfo() { return info; } - -// Mimicing above,, open the log, and get all the information and attach that as a byte attribute of....one of the objects, -// not sure which one yet. and it can't be a string line, byte, then add running this method to the CollectDevieInfo - -string DeviceInfoCollector::collectTcgLog() { - ifstream tcgLogFile("/boot/tcg/manifest/rim/Evo.dockerclient.2.rimel", - std::ios::binary | std::ios::ate); - ifstream::pos_type pos = tcgLogFile.tellg(); - - int length = pos; - char *pChars = new char[length]; - - - tcgLogFile.seekg(0, std::ios::beg); - tcgLogFile.read(pChars, length); - - string content(pos); - tcgLogFile.close(); - - return content; -} \ No newline at end of file