Skip to content

Commit a4c5078

Browse files
committed
13.0.0 Release
1 parent 69fd21c commit a4c5078

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

webutil/_offsrch.p

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
&ANALYZE-RESUME
22
&ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS Procedure
33
/*********************************************************************
4-
* Copyright (C) 2000 by Progress Software Corporation. All rights *
5-
* reserved. Prior versions of this work may contain portions *
6-
* contributed by participants of Possenet. *
4+
* Copyright (C) 2000, 2024 by Progress Software Corporation. *
5+
* All rights reserved. Prior versions of this work may contain *
6+
* portions contributed by participants of Possenet. *
77
* *
88
**********************************************************************
99
@@ -34,7 +34,6 @@ Created: March 1997
3434
&IF "{&WINDOW-SYSTEM}" EQ "TTY":U &THEN
3535
{ src/web/method/cgidefs.i }
3636
&ENDIF
37-
{ webutil/tagextr.i }
3837

3938
DEFINE INPUT PARAMETER pWebFile AS CHARACTER NO-UNDO. /* WEB-FILE */
4039
DEFINE INPUT PARAMETER pRunName AS CHARACTER NO-UNDO. /* procedure file */
@@ -47,7 +46,6 @@ DEFINE VARIABLE cPath AS CHARACTER NO-UNDO.
4746
DEFINE VARIABLE file-ext AS CHARACTER NO-UNDO.
4847
DEFINE VARIABLE file-name AS CHARACTER NO-UNDO.
4948
DEFINE VARIABLE html-file AS CHARACTER NO-UNDO.
50-
DEFINE VARIABLE i-scrap AS INTEGER NO-UNDO. /* scrap */
5149
DEFINE VARIABLE offset-file AS CHARACTER NO-UNDO.
5250
DEFINE VARIABLE proc-file AS CHARACTER NO-UNDO. /* web object, not used */
5351
DEFINE VARIABLE rslt AS LOGICAL NO-UNDO.
@@ -207,10 +205,6 @@ ELSE DO:
207205
ASSIGN
208206
FILE-INFO:FILE-NAME = pOffsetFile
209207
pOffsetFile = FILE-INFO:FULL-PATHNAME.
210-
211-
/* Note: TE_needToMakeOffsets needs a FULL path to each input file. */
212-
IF html-file ne ? THEN
213-
RUN TE_needToMakeOffsets (html-file, pOffsetFile, OUTPUT i-scrap).
214208
END.
215209

216210
/* Generate offset file because we can't find it or because its date/time stamp
@@ -222,23 +216,10 @@ PUT STREAM debug UNFORMATTED
222216
"html-file " html-file SKIP.
223217
&ENDIF
224218

225-
IF pOffsetFile = ? OR i-scrap = 1 THEN DO:
226-
RUN webutil/_genoff.p (html-file, OUTPUT pOffsetFile).
227-
/* Was the offset file generation successful? */
228-
IF RETURN-VALUE = "error":U THEN DO:
229-
&IF "{&WINDOW-SYSTEM}" EQ "TTY":U &THEN
230-
RUN HtmlError IN web-utilities-hdl
231-
("The offset file was not successfully generated. [_offsrch.p]").
232-
&ELSE
233-
MESSAGE "The offset file was not successfully generated. [_offsrch.p]"
234-
VIEW-AS ALERT-BOX.
235-
&ENDIF
236-
237-
&IF {&debug} &THEN
238-
OUTPUT STREAM debug CLOSE.
239-
&ENDIF
219+
IF pOffsetFile = ? THEN DO:
220+
// If there is no offset file, there's nothing more we can do
221+
// here since re-generation of these files is no longer possible.
240222
RETURN "Error":U.
241-
END.
242223
END.
243224

244225
&IF {&debug} &THEN

0 commit comments

Comments
 (0)