Update to latest brotli. Use size_t more consistently. Remove dead code.

This commit is contained in:
Rod Sheeter
2016-04-21 09:27:28 -07:00
parent 4e698b8c6c
commit 07cd303dd2
7 changed files with 11 additions and 89 deletions
+1 -9
View File
@@ -23,7 +23,7 @@
#include <string>
#include <vector>
#include "./encode.h"
#include "./compressor.h"
#include "./buffer.h"
#include "./font.h"
#include "./normalize.h"
@@ -148,14 +148,6 @@ size_t ComputeWoff2Length(const FontCollection& font_collection,
return size;
}
size_t ComputeTTFLength(const std::vector<Table>& tables) {
size_t size = 12 + 16 * tables.size(); // sfnt header
for (const auto& table : tables) {
size += Round4(table.src_length);
}
return size;
}
size_t ComputeUncompressedLength(const Font& font) {
// sfnt header + offset table
size_t size = 12 + 16 * font.num_tables;