1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Remove unused getters in common/io/write module.

These were probably added for symmetry with IoRead but we would prefer to remove those getters.

So, just remove the equivalents in IoWrite.
This commit is contained in:
David Steele
2020-04-01 19:33:11 -04:00
parent f19c59ab38
commit 78beb16d6f
3 changed files with 1 additions and 40 deletions

View File

@ -536,10 +536,7 @@ testRun(void)
TEST_ASSIGN(write, ioHandleWriteNew(strNew("write test"), HARNESS_FORK_CHILD_WRITE()), "move write");
ioWriteOpen(write);
TEST_RESULT_INT(
ioWriteHandle(write), ((IoHandleWrite *)ioWriteDriver(write))->handle, "check write handle");
TEST_RESULT_PTR(ioWriteDriver(write), write->driver, "check write driver");
TEST_RESULT_PTR(ioWriteInterface(write), &write->interface, "check write interface");
TEST_RESULT_INT(ioWriteHandle(write), ((IoHandleWrite *)write->driver)->handle, "check write handle");
// Write a line to be read
TEST_RESULT_VOID(ioWriteStrLine(write, strNew("test string 1")), "write test string");