Skip to content
/ WowUp Public
forked from WowUp/WowUp

Commit 51b3af8

Browse files
committed
Remove some unused code from native addon
1 parent 3b71dd3 commit 51b3af8

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

wowup-electron/native/curse.cc

-18
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,7 @@ bool curse::isWhitespaceCharacter(char b)
4242

4343
uint32_t curse::computeNormalizedLength(char *input, int length)
4444
{
45-
int32_t bufferSize = 65536;
4645
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-
// }
5846

5947
for (int32_t index = 0; index < length; ++index)
6048
{
@@ -64,20 +52,14 @@ uint32_t curse::computeNormalizedLength(char *input, int length)
6452
}
6553
}
6654
return num1;
67-
68-
// pos += num2;
69-
70-
// } while (true);
7155
}
7256

7357
uint32_t curse::computeHash(char *buffer, int length)
7458
{
7559
// std::ofstream myfile("hash.txt", std::ios::out | std::ios::binary);
7660

77-
uint32_t bufferSize = 65536;
7861
uint32_t multiplex = 1540483477;
7962
uint32_t num1 = length;
80-
uint32_t pos = 0;
8163

8264
if (true)
8365
{

0 commit comments

Comments
 (0)