shithub: doll

Download patch

ref: 62edc48ee53375b461c77e1a33b7d649ad3ba3ca
parent: 8403ad31262165522d19e4189292c7c3fdbba45e
author: Tevo <estevan.cps@gmail.com>
date: Sun Dec 6 22:27:42 EST 2020

Useless code

--- a/main.c
+++ b/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, ...)