Japanese translation of message catalog for Sawfish Window-Manager
修订版 | 43419a965061836927ff39843ee439acb34d73b1 (tree) |
---|---|
时间 | 2010-11-17 21:27:10 |
作者 | Michal Maruska <mmaruska@gmai...> |
Commiter | Michal Maruska |
remove debuggin from property-cache -- useless
@@ -50,20 +50,16 @@ property_cache_ref (repv id, repv prop) | ||
50 | 50 | |
51 | 51 | h = CACHE_HASH (id, prop) * CACHE_ASSOC; |
52 | 52 | |
53 | - DB (("prop ref: 0x%x,%s (%d) -> ", id, rep_STR (rep_SYM (prop)->name), h)); | |
54 | - | |
55 | 53 | for (i = h; i < h + CACHE_ASSOC; i++) |
56 | 54 | { |
57 | 55 | if (cache_ids[i] == id && cache_props[i] == prop) |
58 | 56 | { |
59 | 57 | cache_hits++; |
60 | - DB (("hit\n")); | |
61 | 58 | cache_ages[i] = ++cache_clock; |
62 | 59 | return cache_values[i]; |
63 | 60 | } |
64 | 61 | } |
65 | 62 | |
66 | - DB (("miss\n")); | |
67 | 63 | cache_misses++; |
68 | 64 | return rep_NULL; |
69 | 65 | } |
@@ -106,16 +102,11 @@ property_cache_set (repv id, repv prop, repv value, int invals) | ||
106 | 102 | |
107 | 103 | assert (oldest != -1); |
108 | 104 | |
109 | - if (cache_ids[oldest] != 0) | |
110 | - DB (("prop eject: 0x%x (%d)\n", cache_ids[oldest], oldest)); | |
111 | - | |
112 | 105 | cache_ids[oldest] = id; |
113 | 106 | cache_props[oldest] = prop; |
114 | 107 | cache_values[oldest] = value; |
115 | 108 | cache_ages[oldest] = ++cache_clock; |
116 | 109 | cache_updates[oldest] = invals; |
117 | - | |
118 | - DB (("set: 0x%x,%s (%d)\n", id, rep_STR (rep_SYM (prop)->name), oldest)); | |
119 | 110 | } |
120 | 111 | |
121 | 112 | void |