Commit 5d91669
remote-curl: reduce scope of rpc_state.stdin_preamble
The stdin_preamble field in struct rpc_state is only used in
rpc_service(), and not in any functions it directly or indirectly calls.
Refactor it to become an argument of rpc_service() instead.
An observation of all callers of rpc_service() shows that the preamble
is always set, so we no longer need the "if (preamble)" check.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 7d50d34 commit 5d91669
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
| |||
829 | 828 | | |
830 | 829 | | |
831 | 830 | | |
832 | | - | |
| 831 | + | |
833 | 832 | | |
834 | 833 | | |
835 | 834 | | |
836 | | - | |
837 | 835 | | |
838 | 836 | | |
839 | 837 | | |
| |||
843 | 841 | | |
844 | 842 | | |
845 | 843 | | |
846 | | - | |
847 | | - | |
| 844 | + | |
848 | 845 | | |
849 | 846 | | |
850 | 847 | | |
| |||
978 | 975 | | |
979 | 976 | | |
980 | 977 | | |
981 | | - | |
982 | 978 | | |
983 | 979 | | |
984 | | - | |
| 980 | + | |
985 | 981 | | |
986 | 982 | | |
987 | 983 | | |
| |||
1111 | 1107 | | |
1112 | 1108 | | |
1113 | 1109 | | |
1114 | | - | |
1115 | 1110 | | |
1116 | | - | |
| 1111 | + | |
1117 | 1112 | | |
1118 | 1113 | | |
1119 | 1114 | | |
| |||
0 commit comments