File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,7 @@ bool curse::isWhitespaceCharacter(char b)
42
42
43
43
uint32_t curse::computeNormalizedLength (char *input, int length)
44
44
{
45
- int32_t bufferSize = 65536 ;
46
45
int32_t num1 = 0 ;
47
- int32_t pos = 0 ;
48
- int32_t chunkSize = 0 ;
49
-
50
- // do
51
- // {
52
- // chunkSize = std::min(length - pos, bufferSize);
53
-
54
- // if (chunkSize == 0)
55
- // {
56
- // return num1;
57
- // }
58
46
59
47
for (int32_t index = 0 ; index < length; ++index )
60
48
{
@@ -64,20 +52,14 @@ uint32_t curse::computeNormalizedLength(char *input, int length)
64
52
}
65
53
}
66
54
return num1;
67
-
68
- // pos += num2;
69
-
70
- // } while (true);
71
55
}
72
56
73
57
uint32_t curse::computeHash (char *buffer, int length)
74
58
{
75
59
// std::ofstream myfile("hash.txt", std::ios::out | std::ios::binary);
76
60
77
- uint32_t bufferSize = 65536 ;
78
61
uint32_t multiplex = 1540483477 ;
79
62
uint32_t num1 = length;
80
- uint32_t pos = 0 ;
81
63
82
64
if (true )
83
65
{
You can’t perform that action at this time.
0 commit comments