Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | example21.cpp: remove deprecated code |
| 2 | |
| 3 | The deprecated code was no longer used, so remove it to avoid |
| 4 | compiling failure with -Werror=unused-function |
| 5 | ... |
| 6 | | example21.cpp:51:8: error: 'size_t {anonymous}::readData(char*, |
| 7 | size_t, size_t)' defined but not used [-Werror=unused-function] |
| 8 | | size_t readData(char *buffer, size_t size, size_t nitems) |
| 9 | ... |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 14 | --- |
| 15 | examples/example21.cpp | 17 ----------------- |
| 16 | 1 file changed, 17 deletions(-) |
| 17 | |
| 18 | diff --git a/examples/example21.cpp b/examples/example21.cpp |
| 19 | --- a/examples/example21.cpp |
| 20 | +++ b/examples/example21.cpp |
| 21 | @@ -39,23 +39,6 @@ |
| 22 | #include <curlpp/Options.hpp> |
| 23 | #include <curlpp/Exception.hpp> |
| 24 | |
| 25 | -/* |
| 26 | - anonymous namespace to prevent name clash in case other examples using the same global entities |
| 27 | - would be compiled in the same project |
| 28 | -*/ |
| 29 | -namespace |
| 30 | -{ |
| 31 | - |
| 32 | -char *data = NULL; |
| 33 | - |
| 34 | -size_t readData(char *buffer, size_t size, size_t nitems) |
| 35 | -{ |
| 36 | - strncpy(buffer, data, size * nitems); |
| 37 | - return size * nitems; |
| 38 | -} |
| 39 | - |
| 40 | -} // namespace |
| 41 | - |
| 42 | int main(int argc, char *argv[]) |
| 43 | { |
| 44 | if(argc != 3) { |
| 45 | -- |
| 46 | 1.9.1 |
| 47 | |