aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 10:16:57 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:21:52 -0400
commit40199b180e53aa36477c75782be51bd689189287 (patch)
tree793039bc3af07c9f006a7297c214f54e19d9cd61 /src/common
parent0362cdc169a785a386d3c60d354cd34fafde5770 (diff)
downloadtor-40199b180e53aa36477c75782be51bd689189287.tar.gz
tor-40199b180e53aa36477c75782be51bd689189287.zip
Remove read_all and write_all
These had become wrappers around their fd and socket variants; there were only a few users of the original functions still remaining.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 566d16d0aa..9f387150ae 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -68,11 +68,4 @@
/* File helpers */
-#define write_all(fd, buf, count, isSock) \
- ((isSock) ? write_all_to_socket((fd), (buf), (count)) \
- : write_all_to_fd((int)(fd), (buf), (count)))
-#define read_all(fd, buf, count, isSock) \
- ((isSock) ? read_all_from_socket((fd), (buf), (count)) \
- : read_all_from_fd((int)(fd), (buf), (count)))
-
#endif /* !defined(TOR_UTIL_H) */