aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx
index abe2757..7f4afa8 100644
--- a/bpkg/checksum.cxx
+++ b/bpkg/checksum.cxx
@@ -4,14 +4,10 @@
#include <bpkg/checksum.hxx>
-#include <ios> // streamsize
-#include <streambuf>
-
#ifdef _WIN32
# include <algorithm> // replace()
#endif
-#include <libbutl/sha256.mxx>
#include <libbutl/process.mxx>
#include <libbutl/filesystem.mxx>
@@ -344,19 +340,6 @@ namespace bpkg
}
string
- sha256 (istream& is)
- {
- butl::sha256 r;
-
- char buf[8192];
- streambuf& sb (*is.rdbuf ());
- for (streamsize n; (n = sb.sgetn (buf, sizeof (buf))) != 0;)
- r.append (buf, n);
-
- return r.string ();
- }
-
- string
sha256 (const common_options& o, const path& f)
{
if (!exists (f))