Skip to content

Commit e4e452d

Browse files
author
Sebastiano Merlino
committed
Removed unuseful dependency from libuuid
1 parent 3a18134 commit e4e452d

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/http_utils.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <sstream>
2626
#include <iomanip>
2727
#include <fstream>
28-
#include <uuid/uuid.h>
2928
#include "string_utilities.hpp"
3029
#include "http_utils.hpp"
3130

@@ -448,16 +447,5 @@ char* load_file (const char *filename)
448447
return content;
449448
}
450449

451-
void generate_random_uuid(string& result)
452-
{
453-
uuid_t out;
454-
uuid_generate(out);
455-
std::string ret;
456-
ret.assign((const char*) out, 16);
457-
char unparsed[37];
458-
uuid_unparse((const unsigned char*) ret.c_str(), unparsed);
459-
result.assign((const char*) unparsed, 37);
460-
}
461-
462450
};
463451
};

src/httpserver/http_utils.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ char* load_file (const char *filename);
342342

343343
size_t load_file (const char* filename, char** content);
344344

345-
void generate_random_uuid(std::string& uuid);
346-
347345
};
348346
};
349347
#endif

0 commit comments

Comments
 (0)