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

Commit cf8c72b

Browse files
committed
Remove "breakPoints" from setProp cREVGeneral in common library
Remove obsolete section of code dealing with `breakPoints` which is handled elsewhere The top of the if included `pass cREVGeneral`. `tTargetLongID` was only used in the `breakPoints` block of code.
1 parent fcd42b3 commit cf8c72b

1 file changed

Lines changed: 2 additions & 50 deletions

File tree

Toolset/libraries/revcommonlibrary.livecodescript

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,9 @@ setProp cREVGeneral[pWhichProp] pWhichProfile
179179
local tTarget
180180
put the long id of the target into tTarget
181181

182-
local tTargetLongID
183-
put tTarget into tTargetLongID
184182
if pWhichProp is not "profile" and pWhichProp is not "inLineImages" and \
185-
pWhichProp is not "virtualWidth" and pWhichProp is not "virtualHeight" and \
186-
pWhichProp is not "breakPoints" then pass cREVGeneral
183+
pWhichProp is not "virtualWidth" and pWhichProp is not "virtualHeight" \
184+
then pass cREVGeneral
187185

188186
if pWhichProp is "virtualWidth" then
189187
lock messages
@@ -215,52 +213,6 @@ setProp cREVGeneral[pWhichProp] pWhichProfile
215213
exit cREVGeneral
216214
end if
217215

218-
if pWhichProp is "breakPoints" then
219-
220-
pass cREVGeneral
221-
222-
local tBreakPointsList
223-
put the breakPoints into tBreakPointsList
224-
225-
local tMainStack
226-
put the mainStack of stack revTargetStack(tTarget) into tMainStack
227-
228-
local tObjects
229-
put the cREVGeneral["debugObjects"] of stack tMainStack into tObjects
230-
231-
local tStack
232-
put word -2 to -1 of tTarget into tStack
233-
put the name of tStack into word -2 to -1 of tTarget
234-
if pWhichProfile is not empty then
235-
if tTarget is not among the lines of tObjects then
236-
--add breakpoint object
237-
put tTarget into line (the number of lines in tObjects)+1 of tObjects
238-
end if
239-
else
240-
if tTarget is among the lines of tOBjects then
241-
--remove breakpoint object
242-
delete line lineOffset(tTarget,tObjects) of tOBjects
243-
end if
244-
end if
245-
set the cREVGeneral["debugObjects"] of stack tMainStack to tObjects
246-
247-
local tOldPoints
248-
repeat for each line l in tBreakPointsList
249-
if tTargetLongID is not in l then put l & cr after tOldPoints
250-
end repeat
251-
delete last char of tOldPoints
252-
put tOldPoints into tBreakPointsList
253-
254-
local tAddPoints
255-
repeat for each line l in pWhichProfile
256-
put tTarget,l & cr after tAddPoints
257-
end repeat
258-
delete last char of tAddPoints
259-
put tAddPoints into line (the number of lines in tBreakPointsList+1) of tBreakPointsList
260-
set the breakPoints to tBreakPointsList
261-
pass cREVGeneral
262-
end if --breakPoints
263-
264216
if pWhichProp is "inLineImages" then
265217
if pWhichProfile is true then
266218
lock messages

0 commit comments

Comments
 (0)