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

Commit 924fb3b

Browse files
committed
[[ Cleanup ]] engine: Remove some unused variables.
1 parent 04b73e8 commit 924fb3b

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

engine/src/customprinter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,9 +1051,6 @@ void MCCustomMetaContext::dotextmark(MCMark *p_mark)
10511051
{
10521052
MCFontStruct *f = MCFontGetFontStruct(p_mark -> text . font);
10531053

1054-
bool t_is_unicode;
1055-
t_is_unicode = p_mark -> text . unicode_override;
1056-
10571054
MCAutoStringRef t_text_str;
10581055
if (p_mark -> text . unicode_override)
10591056
/* UNCHECKED */ MCStringCreateWithChars((const unichar_t*)p_mark -> text . data, p_mark -> text . length, &t_text_str);

engine/src/dispatch.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,9 +1609,6 @@ void MCDispatch::wmdragleave(Window w)
16091609

16101610
MCDragAction MCDispatch::wmdragdrop(Window w)
16111611
{
1612-
MCStack *target;
1613-
target = findstackd(w);
1614-
16151612
// MW-2011-02-08: Make sure we store the drag action that is in effect now
16161613
// otherwise it can change as a result of message sends which is bad :o)
16171614
uint32_t t_drag_action;
@@ -1724,7 +1721,6 @@ MCStack *MCDispatch::findstackname(MCNameRef p_name)
17241721
// TODO: what about other 'special' chars added by unicode?
17251722
// => the unicode chars shouldn't be changed
17261723
MCStringRef t_replace = MCSTR("\r\n\t *?<>/\\()[]{}|'`\"");
1727-
MCRange t_range = MCRangeMake(0, MCStringGetLength(t_replace));
17281724
uindex_t t_offset;
17291725
for (uindex_t i = 0; i < MCStringGetLength(*t_name); i++)
17301726
{

0 commit comments

Comments
 (0)