Browse code
Remove unused code
Ed Langley authored on 30/05/2017 23:04:10
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -58,12 +58,6 @@ unsigned long bytesToInt (const std::string &bytes) |
58 | 58 |
return result; |
59 | 59 |
} |
60 | 60 |
|
61 |
-time_t time_step (const time_t time, const int step) |
|
62 |
-{ |
|
63 |
- // Time is > 0 so division produces the result we want. |
|
64 |
- return time / step; |
|
65 |
-} |
|
66 |
- |
|
67 | 61 |
class token_generator_impl : public token_generator_ifc |
68 | 62 |
{ |
69 | 63 |
private: |
... | ... |
@@ -109,6 +103,7 @@ public: |
109 | 103 |
|
110 | 104 |
std::string generate_token () const override |
111 | 105 |
{ |
106 |
+ // Assuming time is > 0, integer division produces the result we want. |
|
112 | 107 |
const time_t &time_chunk = clock.time (nullptr) / 30; |
113 | 108 |
|
114 | 109 |
unsigned char data[8] = {0,0,0,0,0,0,0,0}; |