]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] remove stale code
authorKostya Serebryany <kcc@google.com>
Tue, 8 Aug 2017 00:14:49 +0000 (00:14 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 8 Aug 2017 00:14:49 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310325 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerTracePC.cpp
lib/Fuzzer/FuzzerUtil.cpp
lib/Fuzzer/FuzzerUtil.h

index d42bfc253fdc839421dc39aa1d88c5f34335f63a..a646c250225839dcd258f1af82e84fa439021a9e 100644 (file)
@@ -20,9 +20,7 @@
 #include "FuzzerIO.h"
 #include "FuzzerUtil.h"
 #include "FuzzerValueBitMap.h"
-#include <map>
 #include <set>
-#include <sstream>
 
 // The coverage counters and PCs.
 // These are declared as global variables named "__sancov_*" to simplify
index 2d95f40e46a14ee28ace85ae6c29a9e78e1c44ff..f5a7773744932b82411b0cfcdb40259d716755fc 100644 (file)
@@ -205,16 +205,6 @@ unsigned NumberOfCpuCores() {
   return N;
 }
 
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out) {
-  FILE *Pipe = OpenProcessPipe(Command.c_str(), "r");
-  if (!Pipe) return false;
-  char Buff[1024];
-  size_t N;
-  while ((N = fread(Buff, 1, sizeof(Buff), Pipe)) > 0)
-    Out->append(Buff, N);
-  return true;
-}
-
 size_t SimpleFastHash(const uint8_t *Data, size_t Size) {
   size_t Res = 0;
   for (size_t i = 0; i < Size; i++)
index 62d6e61dcf1718e177737576f3dd9c4881dfb999..9c90040b09cb45f770aeb565f6a6e9591798ba2d 100644 (file)
@@ -41,8 +41,6 @@ std::string DescribePC(const char *SymbolizedFMT, uintptr_t PC);
 
 unsigned NumberOfCpuCores();
 
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
-
 // Platform specific functions.
 void SetSignalHandler(const FuzzingOptions& Options);