Commit Graph

825 Commits

Author SHA1 Message Date
Jeffrey
21e43de0f3 Eliminate reliance of abstract_tcp_server2.inl on pragma_comp_defs.h
The GCC maybe-uninitialized warning was already taken care of, and
I don't think it's possible (or realistic) to compile monero in vanilla
VS anymore, and the warning 4355 is turned off by default anyways. Also,
on principal, warnings shouldn't be suppressed en masses like they were
before this change, especially for such an important file.
2022-03-06 11:15:29 -06:00
Jeffrey
36933c7f5c Eliminate portable_storage_to_bin.h reliance on pragma_comp_defs.h
The `-Wstrict-aliasing` warning issue was already fixed by someone earlier.
And for the `-Wtautological-constant-out-of-range-compare` (wordy) warning,
I replaced `val <= 4611686018427387903` assertion with `!(val >> 31 >> 31)`
expression. These expressions are equivalent but the latter is defined if
the size_t type is only 32-bits wide. Another way to think about it is that
the expression is checking if any bit after the 61st bit is set.
2022-03-06 00:48:38 -06:00
Jeffrey
6d4727c714 Remove contrib/epee/tests
These tests appear to never have been used in Monero's lifetime and it would take
a Herculean effort to refactor these files to the point where they will compile.
At many points, these tests include headers which no longer exist in EPEE.
2022-03-05 23:34:58 -06:00
Jeffrey
1b798a7042 Remove the only 4 non-UTF8 characters in codebase
AFAIK these 4 hyphens in these comments in local_ip.h are the only non-UFT8 characters in the entire monero repo.
It tripped up a dependency script I was writing for this codebase, so now its personal.
2022-03-05 21:43:29 -06:00
Jeffrey
7fa9e2817d Further refactor time_helper.h
Actions:
* Remove superfluous includes to boost/date_time, iostream, and pragma_comp_defs.h
* Include cstdio for snprintf
* Include string for std::string
* Move get_gmt_time to top of module for following step
* Use thread-safe get_gmt_time instead of unsafe gm_time in function get_internet_time_str()
* In get_time_interval_string(), add explicit (int) casts to git rid of VS4996 warnings
* In get_time_interval_string(), use snprintf instead of boost::lexical_casts and string concats
* In file epee_utils.cpp, include boost/range/iterator_range.hpp for boost::make_iterator_range.
  Previously, epee_util.cpp was including some file which was including time_helper which included
  a boost header which included iterator_range.hpp at some point, which allowed epee_util.cpp to
  compile without an explicit include of iterator_range.hpp. I added it because I removed the boost
  includes in the first step which broke epee_util.cpp.
2022-03-04 13:48:12 -06:00
Jeffrey
020531a813 Remove old defs of invoke_remote_command2() and notify_remote_command2() 2022-03-02 16:13:40 -06:00
Jeffrey
5b164ed0c1 Remove gzipped_inmemstorage.h 2022-03-02 15:57:41 -06:00
Jeffrey
9a59b131c4 Merge misc_os_dependent.h into time_helper.h
Actions:
* Move get_ns_count(), get_tick_count(), and get_gmt_time() from misc_os_dependent.h to time_helper.h. I did this because all those functions are time-related and under the same namespace
* Remove misc_os_dependent.h because it is now empty
* Change all includes of misc_os_dependent.h to time_helper.h where appropriate
* Remove get_time_string*() from time_helper.h b/c its unused
* Remove get_time_t_from_ole_date() from time_helper.h b/c its unused
* Remove odbc_time_to_oledb_taime() from time_helper.h b/c its unused
* Refactor get_ns_count() to use std::chrono instead of 4 different implementation-specific hacks
2022-03-02 00:32:22 -06:00
Jeffrey
4b3d9de65b Remove levin_client_async.* 2022-03-02 00:29:52 -06:00
Jeffrey
0da8bdc2e0 Remove crypted_storage.h 2022-03-01 10:37:35 -06:00
Jeffrey
a9fbe52b02 Remove misc_os_dependent.cpp and unused functions from misc_os_dependent.h
Actions:
Remove call_sys_cmd() definition from misc_os_dependent.h b/c its unused
Remove get_thread_string_id() declaration from misc_os_dependent.h b/c its unused
Remove misc_os_dependent.cpp file b/c the only definition was get_thread_string_id()
Remove file reference to misc_os_dependent.cpp from epee/src/CMakeLists.txt b/c its now deleted
2022-03-01 10:25:55 -06:00
Jeffrey
bb136b1fd4 Remove http_client_via_api_helper.h 2022-03-01 10:05:57 -06:00
Jeffrey
f9d6504594 Remove http_server_thread_per_connect and its dependencies 2022-03-01 10:01:00 -06:00
Jeffrey
bd0a511995 Move copyable_atomic to be a sub-class of cryptonote_connection_context
epee::copyable_atomic was only be used by one struct, cryptonote_connection_context.
This should probably eventually factored out of that class, so I left the following comment:

This class was originally from the EPEE module. It is identical in function to std::atomic<uint32_t> except
that it has copy-construction and copy-assignment defined, which means that earliers devs didn't have to write
custom copy-contructors and copy-assingment operators for the outer class, cryptonote_connection_context.
cryptonote_connection_context should probably be refactored because it is both trying to be POD-like while
also (very loosely) controlling access to its atomic members.
2022-02-15 17:36:45 -06:00
Jeffrey
bc6a7b6cbe Remove abstract_tcp_server_cp.* 2022-02-14 00:10:53 -06:00
Jeffrey
3c0d1ccb10 Remove levin_server_cp* 2022-02-13 23:54:42 -06:00
Jeffrey
8f492bf65d Remove net_fwd.h and #includes of said header 2022-02-13 23:34:40 -06:00
Jeffrey
5a09e84ed0 Remove http_server_cp*.h 2022-02-13 23:29:03 -06:00
Jeffrey
642e533edb Remove protocol_switcher.h 2022-02-13 23:22:46 -06:00
Jeffrey
cd3186988b Remove rpc_method_name.h 2022-02-13 23:20:56 -06:00
Jeffrey
78f16d3299 Remove multiprotocols_server.h 2022-02-13 23:19:20 -06:00
Jeffrey
f2f9bf82de Remove munin_connection_handler.h 2022-02-13 22:12:03 -06:00
Jeffrey
0e1e01395b Remove munin_node_server.h 2022-02-13 22:09:05 -06:00
Jeffrey
2499269696 Remove to_nonconst_iterator.h and Refactor
This was mostly the same as the other commits, but there was actually one reference to
the functions in to_nonconst_iterator.h in http_protocol_handler.inl. All the other
files modified in this commit were to remove extraneous includes of to_nonconst_iterator.h.

In http_protocol_handler.inl, to_nonsonst_iterator() (misspelled?) was used to convert a
string::const_iterator to a nonconst iterator in order to use it in a call to
string::erase(). However, this in not necessary as of C++11, so I removed the conversion
altogether.
2022-02-11 15:02:45 -06:00
Jeffrey
dbf8e4a2d6 Remove soci_helper.h 2022-02-10 23:34:03 -06:00
Jeffrey
8cec449519 Remove serialize_base.h 2022-02-10 19:42:19 -06:00
Jeffrey
1018698830 Remove static_initializer.h 2022-02-10 19:31:22 -06:00
Jeffrey
d009741cd4 Remove service_impl_base.h 2022-02-10 19:27:59 -06:00
Jeffrey
f4721c0ca5 Removed reg_utils.h 2022-02-10 19:22:27 -06:00
Jeffrey
e8e46bb210 Remove global_stream_operators.h
I think my commit message goes without saying
2022-02-10 18:54:39 -06:00
Jeffrey
10c3a3af95 Removed unused functions from file_io_utils
I removed three unused functions: `get_file_time`, `set_file_time`, and `append_string_to_file`.
I have recompiled on Ubuntu 20 with no issues.
2022-02-10 18:41:29 -06:00
Jeffrey
86d554cbae Remove ado_db_helper.h
Self-explanatory
2022-02-10 18:21:46 -06:00
Jeffrey
c19f141942 Removed unused SMTP, tiny_ini, and SHA-1 files from EPEE
Combined commit of #8172, #8173, #8174
2022-02-10 11:56:47 -06:00
luigi1111
14e94c6918
Merge pull request #8016
b0ec9f8 epee: avoid ADL selecting C++14 std::quoted (selsta)
2021-11-01 12:28:28 -05:00
selsta
e106bdc1fc
epee: add missing header 2021-10-22 04:14:25 +02:00
selsta
b0ec9f85a1
epee: avoid ADL selecting C++14 std::quoted 2021-10-20 19:30:21 +02:00
selsta
4afd9a7a9e
cmake: set required C/C++ standard to 11
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2021-09-16 10:44:25 +02:00
luigi1111
c278c97f1f
Merge pull request #7884
ec6b4cf support cors wildcard (woodser)
2021-09-09 15:20:09 -04:00
luigi1111
aa8320671c
Merge pull request #7858
426dbf4 fix median overflow bug (koe)
2021-09-09 15:17:06 -04:00
luigi1111
3673a679e4
Merge pull request #7850
0ac9a04 epee: tidying post-incrementation -> pre-incrementation (mj-xmr)
2021-08-26 21:12:25 -04:00
woodser
ec6b4cf9e1 support cors wildcard 2021-08-20 14:17:51 -04:00
selsta
301355f88d
epee: link with Boost_SYSTEM_LIBRARY 2021-08-19 19:05:40 +02:00
koe
426dbf434b fix median overflow bug 2021-08-13 06:57:27 -05:00
luigi1111
0b4e922159
Merge pull request #7812
bf96055 Make SSL key/cert storage backward-compatible (Nathan Dorfman)
2021-08-11 22:38:24 -04:00
mj-xmr
0ac9a04b4c
epee: tidying post-incrementation -> pre-incrementation 2021-08-11 16:47:32 +02:00
moneromooo-monero
7354ffb8a7
p2p: remove blocked addresses/hosts from peerlist 2021-08-05 17:29:25 +00:00
Nathan Dorfman
bf96055211 Make SSL key/cert storage backward-compatible
This is required to build on OpenBSD (which uses LibreSSL). It also allows building against versions of OpenSSL before 1.0.2.
2021-07-27 13:49:21 -06:00
mj-xmr
c19f0cbdea
Compil time: move epee storages/parserse_base_utils.h to parserse_base_utils.cpp 2021-06-11 21:20:51 +02:00
luigi1111
7499837a6f
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
2021-06-10 12:00:54 -05:00
luigi1111
25bbb26f63
Merge pull request #7416
b4fe7c2 epee linkage dynamic; move monero_add_library to main CMakeLists.txt (mj-xmr)
2021-06-10 11:18:26 -05:00