Update to latest brotli. Use size_t more consistently. Remove dead code.
This commit is contained in:
+1
-9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user