[Scummvm-git-logs] scummvm master -> 0cc497429d67deafc35ba25e92f64b4d65f09079

ccawley2011 ccawley2011 at gmail.com
Sat Jun 26 21:46:00 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0cc497429d GLK: Remove unused functions.


Commit: 0cc497429d67deafc35ba25e92f64b4d65f09079
    https://github.com/scummvm/scummvm/commit/0cc497429d67deafc35ba25e92f64b4d65f09079
Author: Fiodar Stryzhniou (fedor_qd at mail.ru)
Date: 2021-06-26T22:45:58+01:00

Commit Message:
GLK: Remove unused functions.

Changed paths:
    engines/glk/agt/agility.h
    engines/glk/agt/agxfile.cpp
    engines/glk/agt/filename.cpp
    engines/glk/agt/util.cpp


diff --git a/engines/glk/agt/agility.h b/engines/glk/agt/agility.h
index b7ad932ab4..db2a5b5ac3 100644
--- a/engines/glk/agt/agility.h
+++ b/engines/glk/agt/agility.h
@@ -952,7 +952,6 @@ void agx_create(fc_type fc);
 void write_descr(descr_ptr *dp, descr_line *txt);
 void agx_write(void);
 void agx_wclose(void);
-void agx_wabort(void);
 
 /* ------------------------------------------------------------------- */
 /*  In AUXFILE.C                                                       */
@@ -1126,7 +1125,6 @@ void buffclose(void); /* Close the current file */
 
 void bw_open(fc_type fc, filetype ext); /* Open buffered file for writing */
 void bw_close(void); /* Close buffered file */
-void bw_abort(void); /* Close and delete buffered file */
 
 /* "Universal" file routines */
 extern const size_t ft_leng[FT_COUNT];  /* File lengths of the data types */
@@ -1199,7 +1197,6 @@ rbool filevalid(genfile f, filetype ft);
 void readclose(genfile f);
 void writeclose(genfile f, file_id_type fileid);
 
-void binremove(genfile f, file_id_type fileid);
 void binseek(genfile f, long offset);
 rbool binread(genfile f, void *buff, long recsize, long recnum, const char **errstr);
 long varread(genfile f, void *buff, long recsize, long recnum, const char **errstr);
diff --git a/engines/glk/agt/agxfile.cpp b/engines/glk/agt/agxfile.cpp
index 1a70bf9194..6a2d331518 100644
--- a/engines/glk/agt/agxfile.cpp
+++ b/engines/glk/agt/agxfile.cpp
@@ -1473,11 +1473,5 @@ void agx_wclose(void) {
 	rfree(gindex);
 }
 
-
-void agx_wabort(void) {
-	bw_abort();
-	rfree(gindex);
-}
-
 } // End of namespace AGT
 } // End of namespace Glk
diff --git a/engines/glk/agt/filename.cpp b/engines/glk/agt/filename.cpp
index 3d48872c86..bf93c492aa 100644
--- a/engines/glk/agt/filename.cpp
+++ b/engines/glk/agt/filename.cpp
@@ -514,14 +514,6 @@ void writeclose(genfile f, file_id_type fileid) {
 	fclose(f);
 }
 
-void binremove(genfile f, file_id_type fileid) {
-	assert(f != NULL);
-	assert(fileid != NULL);
-	fclose(f);
-	remove((char *)fileid);
-	rfree(fileid);
-}
-
 long binsize(genfile f)
 /* Returns the size of a binary file */
 {
diff --git a/engines/glk/agt/util.cpp b/engines/glk/agt/util.cpp
index 7ab7ac95bb..b72aaae312 100644
--- a/engines/glk/agt/util.cpp
+++ b/engines/glk/agt/util.cpp
@@ -781,10 +781,6 @@ void bw_close(void) {
 	writeclose(bfile, bw_fileid);
 }
 
-void bw_abort(void) {
-	binremove(bfile, bw_fileid);
-}
-
 
 /*-------------------------------------------------------------------------*/
 /* Block reading and writing code and support for internal buffers         */




More information about the Scummvm-git-logs mailing list