shithub: pt2-clone

Download patch

ref: b305f0dca596c8771bfcc50fbc09d9b0a5025899
parent: 78cd1bf9004d109d5bb07dfed25110565f9143a7
author: Olav Sørensen <olav.sorensen@live.no>
date: Sat Jun 19 17:23:58 EDT 2021

Remove unused function

--- a/src/pt2_diskop.c
+++ b/src/pt2_diskop.c
@@ -544,20 +544,6 @@
 	diskop.numEntries = 0;
 }
 
-static bool swapEntries(int32_t a, int32_t b)
-{
-	fileEntry_t tmpBuffer;
-
-	if (a >= diskop.numEntries || b >= diskop.numEntries)
-		return false;
-
-	tmpBuffer = diskOpEntry[a];
-	diskOpEntry[a] = diskOpEntry[b];
-	diskOpEntry[b] = tmpBuffer;
-
-	return true;
-}
-
 // thanks to aTc for creating this simplified routine for qsort() (I edited it a little bit)
 static int32_t fileEntryCompare(const void *f1, const void *f2)
 {