Skip to content

Commit a217d04

Browse files
author
Dane Springmeyer
committed
remove std::string API - refs #22 (comment)
1 parent 3fecd8d commit a217d04

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

include/gzip/compress.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,4 @@ inline std::string compress(const char* data,
114114
return output;
115115
}
116116

117-
inline std::string compress(std::string const& input,
118-
int level = Z_DEFAULT_COMPRESSION,
119-
int strategy = Z_DEFAULT_STRATEGY)
120-
{
121-
return compress(input.data(), input.size(), level, strategy);
122-
}
123-
124117
} // end gzip namespace

include/gzip/decompress.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,4 @@ inline std::string decompress(const char* data, std::size_t size)
102102
return output;
103103
}
104104

105-
inline std::string decompress(std::string const& input)
106-
{
107-
return decompress(input.data(), input.size());
108-
}
109-
110105
} // end gzip namespace

test/test.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ TEST_CASE("successful compress")
2323
REQUIRE(!value.empty());
2424
}
2525

26-
SECTION("string")
27-
{
28-
std::string value = gzip::compress(data);
29-
REQUIRE(!value.empty());
30-
}
3126
}
3227

3328
TEST_CASE("fail compress - throws max size limit")

0 commit comments

Comments
 (0)