Skip to content

Commit b1891f6

Browse files
committed
auto_cache
1 parent 16929fa commit b1891f6

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

inc/ti/type.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,12 @@ static inline _Bool ti_type_hide_id(ti_type_t * type)
135135
return type->flags & TI_TYPE_FLAG_HIDE_ID;
136136
}
137137

138-
<<<<<<< HEAD
139138
static inline _Bool ti_type_index(ti_type_t * type)
140139
{
141140
return type->flags & TI_TYPE_FLAG_INDEX;
142141
}
143142

144143
static inline void ti_type_index_clear(ti_type_t * type)
145-
=======
146-
static inline _Bool ti_type_auto_cache(ti_type_t * type)
147-
{
148-
return type->flags & TI_TYPE_FLAG_AUTO_CACHE;
149-
}
150-
151-
static inline void ti_type_auto_cache_clear(ti_type_t * type)
152-
>>>>>>> 5f73c0836d2fa0f9a5615411a1b8b940ddc22afe
153144
{
154145
imap_destroy(type->t_cache, NULL);
155146
type->t_cache = NULL;
@@ -160,11 +151,7 @@ static inline void ti_type_set_wrap_only_mode(ti_type_t * type, _Bool wpo)
160151
if (wpo)
161152
{
162153
type->flags |= TI_TYPE_FLAG_WRAP_ONLY;
163-
<<<<<<< HEAD
164154
ti_type_index_clear(type);
165-
=======
166-
ti_type_auto_cache_clear(type);
167-
>>>>>>> 5f73c0836d2fa0f9a5615411a1b8b940ddc22afe
168155
}
169156
else
170157
type->flags &= ~TI_TYPE_FLAG_WRAP_ONLY;
@@ -189,18 +176,6 @@ static inline void ti_type_set_index(ti_type_t * type, _Bool idx)
189176
}
190177
}
191178

192-
193-
static inline void ti_type_set_auto_cache(ti_type_t * type, _Bool aca)
194-
{
195-
if (aca)
196-
type->flags |= TI_TYPE_FLAG_AUTO_CACHE;
197-
else
198-
{
199-
type->flags &= ~TI_TYPE_FLAG_AUTO_CACHE;
200-
ti_type_auto_cache_clear(type);
201-
}
202-
}
203-
204179
static inline int ti_type_wrap_only_e(ti_type_t * type, ex_t * e)
205180
{
206181
if (ti_type_is_wrap_only(type))

0 commit comments

Comments
 (0)