diff --git a/src/r_defs.h b/src/r_defs.h
index 195cf86ff225e32b39d3997e4fcfb6f1cea66f12..2a84a070cb9b8ec4e133cfb7fe48fd43669b3a01 100644
--- a/src/r_defs.h
+++ b/src/r_defs.h
@@ -814,7 +814,6 @@ typedef struct
 
 	INT16 width, height;
 	INT16 leftoffset, topoffset;
-	INT32 width_mask;
 
 	UINT8 *pixels;
 	column_t *columns;
diff --git a/src/r_patch.c b/src/r_patch.c
index fb7f5d579b0a6341d4cc846a31c40b8c87366a7e..208c3330ca5b87768efa45f1bf528d31c2648c12 100644
--- a/src/r_patch.c
+++ b/src/r_patch.c
@@ -239,11 +239,6 @@ patch_t *Patch_CreateFromDoomPatch(softwarepatch_t *source)
 
 	Patch_CalcDataSizes(source, &total_pixels, &total_posts);
 
-	int width_po2 = 1;
-	while (width_po2 < patch->width)
-		width_po2 <<= 1;
-	patch->width_mask = width_po2 - 1;
-
 	patch->columns = Z_Calloc(sizeof(column_t) * patch->width, PU_PATCH_DATA, NULL);
 	patch->pixels = Z_Calloc(sizeof(UINT8) * total_pixels, PU_PATCH_DATA, NULL);
 
@@ -386,19 +381,6 @@ static void Patch_RebuildColumn(patch_t *patch, INT32 x, bitarray_t *is_opaque)
 	}
 }
 
-column_t *Patch_GetColumn(patch_t *patch, unsigned column)
-{
-	if (column >= (unsigned)patch->width)
-	{
-		if (patch->width_mask + 1 == patch->width)
-			column &= patch->width_mask;
-		else
-			column %= patch->width;
-	}
-
-	return &patch->columns[column];
-}
-
 void *Patch_GetPixel(patch_t *patch, INT32 x, INT32 y)
 {
 	if (x < 0 || x >= patch->width || y < 0 || y >= patch->height)
diff --git a/src/r_patch.h b/src/r_patch.h
index 260007e459e4c91c9f4dccb44c36674da7300b47..351ef3628e03b817825cb00a99432eaa8f319088 100644
--- a/src/r_patch.h
+++ b/src/r_patch.h
@@ -59,8 +59,6 @@ patch_t *Patch_CreateFromDoomPatch(softwarepatch_t *source);
 void Patch_CalcDataSizes(softwarepatch_t *source, size_t *total_pixels, size_t *total_posts);
 void Patch_MakeColumns(softwarepatch_t *source, size_t num_columns, INT16 width, UINT8 *pixels, column_t *columns, post_t *posts, boolean flip);
 
-column_t *Patch_GetColumn(patch_t *patch, unsigned column);
-
 #define Patch_FreeTag(tagnum) Patch_FreeTags(tagnum, tagnum)
 void Patch_FreeTags(INT32 lowtag, INT32 hightag);