ソースを参照

tools: encode empty sets too

Most data compilers expect them to exist even if empty.

Follow-up to: 42226faf4
Daniele Bartolini 4 ヶ月 前
コミット
8034a4e683
1 ファイル変更0 行追加3 行削除
  1. 0 3
      tools/core/database.vala

+ 0 - 3
tools/core/database.vala

@@ -801,9 +801,6 @@ public class Database
 			// Since null-key is equivalent to non-existent key, skip serialization.
 			if (db[key] == null)
 				continue;
-			// Skip empty sets.
-			if (db[key].holds(typeof(Gee.HashSet)) && ((Gee.HashSet)db[key]).size == 0)
-				continue;
 
 			string[] foo = key.split(".");
 			Hashtable x = obj;