Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 701dbf1

Browse files
committed
[[ Cleanup ]] Remove bitmap effect property setters as unused.
1 parent d3fecd3 commit 701dbf1

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

engine/src/bitmapeffect.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -268,41 +268,6 @@ static void MCBitmapEffectDefault(MCBitmapEffect *p_effect, MCBitmapEffectType p
268268
}
269269
}
270270

271-
static Exec_stat MCBitmapEffectSetCardinalProperty(uint4 p_bound, MCStringRef p_data, uint4 p_current_value, uint4& r_new_value, Boolean& r_dirty)
272-
{
273-
uint4 t_value;
274-
if (!MCU_stoui4(p_data, t_value))
275-
{
276-
MCeerror -> add(EE_BITMAPEFFECT_BADNUMBER, 0, 0, p_data);
277-
return ES_ERROR;
278-
}
279-
280-
t_value = MCU_min(t_value, p_bound);
281-
if (t_value != p_current_value)
282-
r_dirty = True;
283-
284-
r_new_value = t_value;
285-
286-
return ES_NORMAL;
287-
}
288-
289-
static Exec_stat MCBitmapEffectSetBooleanProperty(MCStringRef p_data, bool p_current_value, bool& r_new_value, Boolean& r_dirty)
290-
{
291-
bool t_value;
292-
if (!MCTypeConvertStringToBool(p_data, t_value))
293-
{
294-
MCeerror -> add(EE_BITMAPEFFECT_BADBOOLEAN, 0, 0, p_data);
295-
return ES_ERROR;
296-
}
297-
298-
if (t_value != p_current_value)
299-
r_dirty = True;
300-
301-
r_new_value = t_value;
302-
303-
return ES_NORMAL;
304-
}
305-
306271
uint32_t MCBitmapEffectsWeigh(MCBitmapEffectsRef self)
307272
{
308273
uint32_t t_size;

0 commit comments

Comments
 (0)