Skip to content

Commit

Permalink
Merge pull request #51 from pmconrad/core_986_cleanup
Browse files Browse the repository at this point in the history
Remove unused "smaz" compression
  • Loading branch information
pmconrad authored May 29, 2018
2 parents 0d689a4 + 0fc569c commit cff8e96
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 265 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ set( fc_sources
src/network/rate_limiting.cpp
src/network/resolve.cpp
src/network/url.cpp
src/compress/smaz.cpp
src/compress/zlib.cpp
)

Expand Down
9 changes: 0 additions & 9 deletions include/fc/compress/smaz.hpp

This file was deleted.

223 changes: 0 additions & 223 deletions src/compress/smaz.cpp

This file was deleted.

32 changes: 0 additions & 32 deletions tests/compress/compress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,11 @@

#include <fstream>
#include <iostream>
#include <fc/compress/smaz.hpp>
#include <fc/compress/zlib.hpp>
#include <fc/exception/exception.hpp>

BOOST_AUTO_TEST_SUITE(compress)

BOOST_AUTO_TEST_CASE(smaz_test)
{
std::ifstream testfile;
testfile.open("README.md");

std::stringstream buffer;
std::string line;
std::getline( testfile, line );
while( testfile.good() )
{
buffer << line << "\n";
try {
std::string compressed = fc::smaz_compress( line );
std::string decomp = fc::smaz_decompress( compressed );
BOOST_CHECK_EQUAL( decomp, line );
}
catch ( fc::exception& e )
{
std::cout<<e.to_detail_string()<<"\n";
}

std::getline( testfile, line );
}

line = buffer.str();
std::string compressed = fc::smaz_compress( line );
std::string decomp = fc::smaz_decompress( compressed );
BOOST_CHECK_EQUAL( decomp, line );
}


extern "C" {

enum
Expand Down

0 comments on commit cff8e96

Please # to comment.