From de45f6d8d7d777244006a7998ec971157e51296e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 18 Nov 2022 23:32:08 +0100 Subject: Readd meme gpg encryption in matrix, this time asynchronous decryption of only visible items --- src/ResourceLoader.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ResourceLoader.cpp') diff --git a/src/ResourceLoader.cpp b/src/ResourceLoader.cpp index 86687d2..a120096 100644 --- a/src/ResourceLoader.cpp +++ b/src/ResourceLoader.cpp @@ -26,14 +26,6 @@ namespace QuickMedia { return resource_root.c_str(); } - static int accumulate_string(char *data, int size, void *userdata) { - std::string *str = (std::string*)userdata; - if(str->size() + size > 1024 * 1024 * 100) // 100mb sane limit, TODO: make configurable - return 1; - str->append(data, size); - return 0; - } - // If absolute, use the path; otherwise use fc-match to find the font static bool find_font(const std::string &font_name, std::string &font_filepath_result) { if(get_config().font.latin.find('/') != std::string::npos) { -- cgit v1.2.3