summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2022-07-13 02:10:44 +0200
committerjvoisin2022-07-13 02:10:44 +0200
commita205a17fc49dfb6701fdc68c1f2b05f11cd1e56f (patch)
tree424a0b227497fa3a765976564dddc62ccb64462c /src/sp_utils.c
parent3dbb2f3feeec54c4ab6b2efc53b5c5635dbd9129 (diff)
Remove some dead code
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index fdcdc99..a8c84f9 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -90,12 +90,6 @@ int compute_hash(const char* const restrict filename,
90 return SUCCESS; 90 return SUCCESS;
91} 91}
92 92
93static int construct_filename(char* filename,
94 const zend_string* restrict folder,
95 const zend_string* restrict textual) {
96 return 0;
97}
98
99int sp_log_request(const zend_string* restrict folder, const zend_string* restrict text_repr) { 93int sp_log_request(const zend_string* restrict folder, const zend_string* restrict text_repr) {
100 FILE* file; 94 FILE* file;
101 char const* const current_filename = zend_get_executed_filename(TSRMLS_C); 95 char const* const current_filename = zend_get_executed_filename(TSRMLS_C);
@@ -132,7 +126,6 @@ int sp_log_request(const zend_string* restrict folder, const zend_string* restri
132 EG(current_execute_data) = current; 126 EG(current_execute_data) = current;
133 char* const complete_path_function = get_complete_function_path(current); 127 char* const complete_path_function = get_complete_function_path(current);
134 if (complete_path_function) { 128 if (complete_path_function) {
135 const int current_line = zend_get_executed_lineno(TSRMLS_C);
136 PHP_SHA256Update(&context, (const unsigned char*)complete_path_function, strlen(complete_path_function)); 129 PHP_SHA256Update(&context, (const unsigned char*)complete_path_function, strlen(complete_path_function));
137 efree(complete_path_function); 130 efree(complete_path_function);
138 } 131 }