Skip to content

Commit

Permalink
rm tcl_encap_type_stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Jan 3, 2021
1 parent af887c3 commit abb0243
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions util/ReportTcl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ encapOutputProc(ClientData instanceData,
int toWrite,
int *errorCodePtr);
static int
encapErrorOutputProc(ClientData instanceData,
CONST84 char *buf,
int toWrite,
int *errorCodePtr);
static int
encapCloseProc(ClientData instanceData, Tcl_Interp *interp);
static int
encapSetOptionProc(ClientData instanceData,
Expand Down Expand Up @@ -93,26 +88,6 @@ Tcl_ChannelType tcl_encap_type_stdout = {
nullptr // truncateProc
};

Tcl_ChannelType tcl_encap_type_stderr = {
const_cast<char *>("file"),
TCL_CHANNEL_VERSION_4,
encapCloseProc,
encapInputProc,
encapErrorOutputProc,
encapSeekProc,
encapSetOptionProc,
encapGetOptionProc,
encapWatchProc,
encapGetHandleProc,
nullptr, // close2Proc
encapBlockModeProc,
nullptr, // flushProc
nullptr, // handlerProc
nullptr, // wideSeekProc
nullptr, // threadActionProc
nullptr // truncateProc
};

////////////////////////////////////////////////////////////////

ReportTcl::ReportTcl() :
Expand Down Expand Up @@ -144,7 +119,7 @@ ReportTcl::setTclInterp(Tcl_Interp *interp)
TCL_WRITABLE,
tcl_stdout_);
tcl_encap_stderr_ = Tcl_StackChannel(interp,
&tcl_encap_type_stderr,
&tcl_encap_type_stdout,
this,
TCL_WRITABLE,
tcl_stderr_);
Expand Down Expand Up @@ -244,16 +219,6 @@ encapOutputProc(ClientData instanceData,
return report->printString(buf, toWrite);
}

static int
encapErrorOutputProc(ClientData instanceData,
CONST84 char *buf,
int toWrite,
int *)
{
ReportTcl *report = reinterpret_cast<ReportTcl *>(instanceData);
return report->printString(buf, toWrite);
}

static int
encapInputProc(ClientData,
char *,
Expand Down

0 comments on commit abb0243

Please sign in to comment.