Skip to content

Commit

Permalink
plotter_disk: Keep streams syncronized and std::cin tied (Chia-Netw…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdustinface authored Mar 25, 2022
1 parent 8398c92 commit 965cdfe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/plotter_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@ class DiskPlotter {
fs::remove(tmp_2_filename);
fs::remove(final_filename);

std::ios_base::sync_with_stdio(false);
std::ostream* prevstr = std::cin.tie(NULL);

{
// Scope for FileDisk
std::vector<FileDisk> tmp_1_disks;
Expand Down Expand Up @@ -359,9 +356,6 @@ class DiskPlotter {
all_phases.PrintElapsed("Total time =");
}

std::cin.tie(prevstr);
std::ios_base::sync_with_stdio(true);

for (fs::path p : tmp_1_filenames) {
fs::remove(p);
}
Expand Down

0 comments on commit 965cdfe

Please sign in to comment.