Repository: trafficserver Updated Branches: refs/heads/master 1d19318b0 -> 1ccb1ea4c
TS-3287 Eliminate some dead code around random() Coverity CID #1261573 Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/fc559c12 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/fc559c12 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/fc559c12 Branch: refs/heads/master Commit: fc559c126d302f6928046ec764854cadb540eedf Parents: cb7fc8f Author: Leif Hedstrom <[email protected]> Authored: Fri Jan 23 12:04:28 2015 -0700 Committer: Leif Hedstrom <[email protected]> Committed: Fri Jan 23 12:05:43 2015 -0700 ---------------------------------------------------------------------- mgmt/web2/WebCompatibility.cc | 24 ------------------------ mgmt/web2/WebCompatibility.h | 7 ------- mgmt/web2/WebHttp.cc | 4 ---- 3 files changed, 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc559c12/mgmt/web2/WebCompatibility.cc ---------------------------------------------------------------------- diff --git a/mgmt/web2/WebCompatibility.cc b/mgmt/web2/WebCompatibility.cc index d0fecfa..7065418 100644 --- a/mgmt/web2/WebCompatibility.cc +++ b/mgmt/web2/WebCompatibility.cc @@ -201,27 +201,3 @@ WebFileGetDateGmt(WebHandle h_file) return date; } - -//------------------------------------------------------------------------- -// WebSeedRand -//------------------------------------------------------------------------- - -void -WebSeedRand(long seed) -{ - srand48(seed); - return; - -} - -//------------------------------------------------------------------------- -// WebRand -//------------------------------------------------------------------------- - -long -WebRand() -{ - // we may want to fix this later - // coverity[secure_coding] - return lrand48(); -} http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc559c12/mgmt/web2/WebCompatibility.h ---------------------------------------------------------------------- diff --git a/mgmt/web2/WebCompatibility.h b/mgmt/web2/WebCompatibility.h index 3666208..d8c8170 100644 --- a/mgmt/web2/WebCompatibility.h +++ b/mgmt/web2/WebCompatibility.h @@ -79,11 +79,4 @@ int WebFileImport_Xmalloc(const char *file, char **file_buf, int *file_size); int WebFileGetSize(WebHandle h_file); time_t WebFileGetDateGmt(WebHandle h_file); -//------------------------------------------------------------------------- -// Random Numbers -//------------------------------------------------------------------------- - -void WebSeedRand(long seed); -long WebRand(); - #endif // _WEB_COMPATIBILITY_H_ http://git-wip-us.apache.org/repos/asf/trafficserver/blob/fc559c12/mgmt/web2/WebHttp.cc ---------------------------------------------------------------------- diff --git a/mgmt/web2/WebHttp.cc b/mgmt/web2/WebHttp.cc index 91d99aa..02b5236 100644 --- a/mgmt/web2/WebHttp.cc +++ b/mgmt/web2/WebHttp.cc @@ -38,7 +38,6 @@ #include "WebHttp.h" #include "WebHttpContext.h" #include "WebHttpMessage.h" -#include "WebHttpSession.h" #include "WebOverview.h" #include "mgmtapi.h" @@ -469,9 +468,6 @@ WebHttpInit() // initialize file bindings g_file_bindings_ht = ink_hash_table_create(InkHashTableKeyType_String); ink_hash_table_insert(g_file_bindings_ht, "/synthetic.txt", (void *) handle_synthetic); - - // initialize other modules - WebHttpSessionInit(); } //-------------------------------------------------------------------------
