remove an unused function
authorRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 16:05:51 +0000 (18:05 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 16:05:51 +0000 (18:05 +0200)
qcsrc/server/race.qc

index 1c79c575f903818e5ed78d95cf379d9c4d6c4ea9..2f158898198aafe3b45aeedbe4a1a04979fbf6b8 100644 (file)
@@ -140,17 +140,9 @@ float race_CheckUID(string myuid, string net_name) { // return existing UID or p
                                return i+1;
        }
        for (i=RANKINGS_CNT-1;i>=0;--i)
-               if(grecordholder[i] == net_name)
-                       return i+1;
-       return 0;
-}
-#endif
-
-float race_CheckName(string net_name) { // Does the name already exist in rankings? In that case, where? (otherwise 0)
-       float i;
-       for (i=RANKINGS_CNT-1;i>=0;--i)
-               if(grecordholder[i] == net_name)
-                       return i+1;
+               if(!grecorduid[i])
+                       if(grecordholder[i] == net_name)
+                               return i+1;
        return 0;
 }