Skip to content

Commit 6821e2b

Browse files
Copilottravisdowns
andcommitted
Remove now-unused random_ member and its dead includes
Agent-Logs-Url: https://github.com/redpanda-data/avro/sessions/b62d1929-ada4-43d6-9a02-d5dc98f08aaf Co-authored-by: travisdowns <2403521+travisdowns@users.noreply.github.com>
1 parent 4205dc6 commit 6821e2b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lang/c++/impl/avrogencpp.cc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
*/
1818

1919
#include <cctype>
20-
#ifndef _WIN32
21-
#include <ctime>
22-
#endif
2320
#include <fstream>
2421
#include <iostream>
2522
#include <map>
@@ -29,7 +26,6 @@
2926
#include <boost/lexical_cast.hpp>
3027
#include <boost/program_options.hpp>
3128

32-
#include <boost/random/mersenne_twister.hpp>
3329
#include <utility>
3430

3531
#include "Compiler.hh"
@@ -124,7 +120,6 @@ class CodeGen {
124120
const std::string includePrefix_;
125121
const bool noUnion_;
126122
const std::string guardString_;
127-
boost::mt19937 random_;
128123

129124
vector<PendingSetterGetter> pendingGettersAndSetters;
130125
vector<PendingConstructor> pendingConstructors;
@@ -158,8 +153,7 @@ class CodeGen {
158153
std::string includePrefix, bool noUnion) : unionNumber_(0), os_(os), inNamespace_(false), ns_(std::move(ns)),
159154
schemaFile_(std::move(schemaFile)), headerFile_(std::move(headerFile)),
160155
includePrefix_(std::move(includePrefix)), noUnion_(noUnion),
161-
guardString_(std::move(guardString)),
162-
random_(static_cast<uint32_t>(::time(nullptr))) {
156+
guardString_(std::move(guardString)) {
163157
}
164158

165159
void generate(const ValidSchema &schema);

0 commit comments

Comments
 (0)