You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2021/09/22 21:47:44 UTC
[trafficserver] branch master updated: remove unused
RecConfigFileEntry from RecConfigParse (#8348)
This is an automated email from the ASF dual-hosted git repository.
bnolsen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e52009c remove unused RecConfigFileEntry from RecConfigParse (#8348)
e52009c is described below
commit e52009cee1ccccff154b2dc3955697d2adb6bb05
Author: Brian Olsen <bn...@gmail.com>
AuthorDate: Wed Sep 22 15:47:35 2021 -0600
remove unused RecConfigFileEntry from RecConfigParse (#8348)
---
lib/records/RecConfigParse.cc | 5 -----
1 file changed, 5 deletions(-)
diff --git a/lib/records/RecConfigParse.cc b/lib/records/RecConfigParse.cc
index a97bff9..bc7e5d5 100644
--- a/lib/records/RecConfigParse.cc
+++ b/lib/records/RecConfigParse.cc
@@ -147,8 +147,6 @@ RecConfigFileParse(const char *path, RecConfigEntryCallback handler)
Tokenizer line_tok("\r\n");
tok_iter_state line_tok_state;
- RecConfigFileEntry *cfe;
-
RecDebug(DL_Note, "Reading '%s'", path);
// watch out, we're altering our g_rec_config_xxx structures
@@ -249,9 +247,6 @@ RecConfigFileParse(const char *path, RecConfigEntryCallback handler)
handler(rec_type, data_type, name_str, value_str, value_str == data_str ? REC_SOURCE_EXPLICIT : REC_SOURCE_ENV);
// update our g_rec_config_contents_xxx
- cfe = static_cast<RecConfigFileEntry *>(ats_malloc(sizeof(RecConfigFileEntry)));
- cfe->entry_type = RECE_RECORD;
- cfe->entry = ats_strdup(name_str);
g_rec_config_contents_ht.emplace(name_str);
L_done: