Commit:62edc48ee53375b461c77e1a33b7d649ad3ba3ca (browse)
Parent:8403ad31262165522d19e4189292c7c3fdbba45e
Author:Tevo <estevan.cps@gmail.com>
Date:Mon Dec 7 04:27:42 CET 2020
Message:
Useless code

main.c => main.c
@@ -22,36 +22,6 @@
 	uchar padding[26];
 };
 
-enum
-{
-	BIG, LITTLE
-};
-
-int
-curendianness(void)
-{
-	union
-	{
-		int i;
-		uchar c;
-	} v;
-
-	v.i = 0xFF;
-	return v.c == 0xFF;
-}
-
-void
-bigstore(char *dest, void* src, usize len)
-{
-	char *s = src;
-
-	if(curendianness() == BIG)
-		memcpy(dest, src, len);
-	else
-		for(int c = 0; c < len; c++)
-			dest[c] = s[len-c];
-}
-
 #pragma varargck argpos error 1
 void
 error(char *fmt, ...)