From 7babd1220ff6609ac3b8ef212ef444e36fea8d91 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 23 Oct 2024 03:35:33 +0000
Subject: [PATCH] search: Remove SDL-specific tweak.
It still lives in wiki.libsdl.org's local copy, but not revision control.
---
index.php | 8 --------
1 file changed, 8 deletions(-)
diff --git a/index.php b/index.php
index f12a892..72ced08 100644
--- a/index.php
+++ b/index.php
@@ -1075,14 +1075,6 @@ function sort_search_results($a, $b)
if ($retval != 0) {
$bias = 0;
- /* HACK FOR SDL3 FOR NOW: */
- if ((strncmp($a, "SDL3", 4) == 0) && (strncmp($b, "SDL2", 4) == 0)) {
- $bias = -1;
- } else if ((strncmp($a, "SDL2", 4) == 0) && (strncmp($b, "SDL3", 4) == 0)) {
- $bias = 1;
- }
- /* HACK FOR SDL3 FOR NOW: */
-
global $search_query;
$abase = (basename($a) == $search_query);
$bbase = (basename($b) == $search_query);