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

Commit b63d1d8

Browse files
committed
PJ: remove add_check_tflx_toram and rem_check_tflx_toram.
These were originally responsible for automatically moving files between disk and ram.
1 parent 94e5463 commit b63d1d8

File tree

6 files changed

+0
-39
lines changed

6 files changed

+0
-39
lines changed

src/PJ/auto.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ void auto_setup(Autoarg *aa)
725725

726726
/* undo stuff and common setup stuff before executing auto drawer */
727727
{
728-
rem_check_tflx_toram();
729728
flx_clear_olays();
730729
if(aa->flags & AUTO_HIDEMP)
731730
hide_mp();
@@ -795,8 +794,6 @@ Errcode auto_restores(Autoarg *aa,Errcode err)
795794
show_mp();
796795
set_abort_verify(NULL, NULL);
797796
flx_draw_olays();
798-
if(!aa->in_preview)
799-
add_check_tflx_toram();
800797
see_cmap(); /* some error cases may not sync colormap! */
801798
return(err);
802799
}

src/PJ/composmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,6 @@ void *ss;
848848
early_error:
849849
smu_free_scatters(&ss);
850850
softerr(err,"join_menu");
851-
add_check_tflx_toram();
852-
return;
853851
}
854852
void qdo_composite(void)
855853
{

src/PJ/freem.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -229,36 +229,6 @@ set_trd_maxmem(void)
229229

230230
/*** checker "task" called from within input loop installed by doauto() ***/
231231

232-
static Waitask trdtask;
233-
234-
static int trdtask_func(Waitask *wt)
235-
{
236-
(void)wt;
237-
238-
if(pushed_mask > 0 /* wait till all is popped */
239-
|| pushed_alt > 0
240-
|| pushed_cel > 0
241-
|| pushed_mask > 0
242-
|| flix.xf == NULL /* wait till file is open */
243-
|| cgroup_hidden(vb.screen) /* wait till menus are shown */
244-
|| zoom_hidden()) /* wait till rezoomed */
245-
{
246-
return(0);
247-
}
248-
249-
return(TRUE); /* done with it */
250-
}
251-
void rem_check_tflx_toram(void)
252-
{
253-
rem_waitask(&trdtask);
254-
}
255-
void add_check_tflx_toram(void)
256-
{
257-
if(WT_ISATTACHED(&trdtask))
258-
return;
259-
init_waitask(&trdtask,trdtask_func,NULL,WT_KILLCURSOR);
260-
add_waitask(&trdtask);
261-
}
262232
void pop_most(void)
263233
{
264234
grab_uvfont();

src/PJ/inc/memory.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ extern Errcode pop_cel(void);
108108
extern Errcode push_most(void);
109109
extern Errcode push_pics_id(LONG time_id);
110110
extern void set_trd_maxmem(void);
111-
extern void rem_check_tflx_toram(void);
112-
extern void add_check_tflx_toram(void);
113111
extern void pop_most(void);
114112
extern void maybe_push_most(void);
115113
extern void maybe_pop_most(void);

src/PJ/multimen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ static Button *disabtab[] = {
461461
menu_to_cursor(vb.screen, &mum_menu);
462462
err = do_reqloop(vb.screen,&mum_menu,NULL,NULL,NULL);
463463
vl.undoit = oundo;
464-
add_check_tflx_toram(); /* something here may have forced it out */
465464

466465
error:
467466
smu_free_scatters(&ss);

src/PJ/tempflx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ void flush_tflx(void)
115115
}
116116
void close_tflx(void)
117117
{
118-
rem_check_tflx_toram(); /* fudgy but this will take it out */
119118
vs.frame_ix = 0;
120119
close_flx(&flix);
121120
}

0 commit comments

Comments
 (0)