1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 04:54:28 +01:00

Remove useless includes

This commit is contained in:
Matias Fontanini
2017-05-13 10:43:29 -07:00
parent c6f4e816aa
commit a5766a19c2
25 changed files with 53 additions and 74 deletions

View File

@@ -28,9 +28,6 @@
*/
#include <utility>
#include <stdexcept>
#include <sstream>
#include <memory>
#include <cstdio>
#include "dns.h"
#include "ip_address.h"
@@ -40,7 +37,6 @@
#include "memory_helpers.h"
using std::string;
using std::copy;
using std::memcpy;
using std::list;
using std::make_pair;
@@ -372,7 +368,7 @@ uint32_t DNS::compose_name(const uint8_t* ptr, char* out_ptr) const {
if (current_out_ptr != out_ptr) {
*current_out_ptr++ = '.';
}
copy(ptr, ptr + size, current_out_ptr);
memcpy(current_out_ptr, ptr, size);
current_out_ptr += size;
ptr += size;
}