]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Delete unused_float
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 14 Aug 2016 11:37:30 +0000 (21:37 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 14 Aug 2016 11:37:30 +0000 (21:37 +1000)
qcsrc/common/command/markup.qc
qcsrc/common/util.qh
qcsrc/lib/csqcmodel/sv_model.qc
qcsrc/menu/xonotic/util.qc

index 9f0883bd61ba0ea6696dc9a9e443f1f1e733addb..583c61e5517d89d046869c1d3ca3050714beeff0 100644 (file)
@@ -53,7 +53,6 @@ void GenericCommand_markup_init()
        markup_from[i] = "&.."; markup_to[i] = "\x9e"; ++i;
        markup_from[i] = "&.)"; markup_to[i] = "\x9f"; ++i;
        markup_from[i] = "&<|"; markup_to[i] = "\xff"; ++i;
-       unused_float = i;
 }
 
 string GenericCommand_markup(string s2)
index 81acde950eba2fc63cd450375f0bcebb9c1e7b16..599dd4d43c5b4bc5abd6f8be6d1a2e28608a0fa4 100644 (file)
@@ -231,9 +231,6 @@ float ReadApproxPastTime();
 void execute_next_frame();
 void queue_to_execute_next_frame(string s);
 
-// for marking written-to values as unused where it's a good idea to do this
-noref float unused_float;
-
 // a function f with:
 // f(0) = 0
 // f(1) = 1
index d495ae0154e58bd297d3de76de2c4eb7c8aed761..0f8ef06ac86a7fd890ca3a35bba045100b893050 100644 (file)
@@ -64,13 +64,9 @@ bool CSQCModel_Send(entity this, entity to, int sf)
 void CSQCModel_CheckUpdate(entity e)
 {
        // some nice flags for CSQCMODEL_IF
-       float isplayer = IS_CLIENT(e);
-       float islocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags
-       float isnolocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags
-
-       unused_float = isplayer;
-       unused_float = islocalplayer;
-       unused_float = isnolocalplayer;
+       noref float isplayer = IS_CLIENT(e);
+       noref float islocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags
+       noref float isnolocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags
 
 #if CSQCPLAYER_FORCE_UPDATES
        if(isplayer && time > e.csqcmodel_nextforcedupdate)
index d55fa4d6d6cc2eb051620efb82a05f99b45108bf..9cc4da8c38705baeeb633b9607ad7086870848bf 100644 (file)
@@ -693,24 +693,18 @@ float updateCompression()
 Gametype GameType_GetID(int cnt)
 {
        int i = 0;
-
        #define GAMETYPE(it) { if (i++ == cnt) return it; }
        GAMETYPES
        #undef GAMETYPE
-
-       unused_float = i;
-
        return NULL;
 }
 
 int GameType_GetCount()
 {
        int i = 0;
-
        #define GAMETYPE(id) ++i;
        GAMETYPES
        #undef GAMETYPE
-
        return i;
 }