summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-03 22:46:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-03 22:46:17 (GMT)
commita303a1324a67c192bcaa76b3e08c81352d2bf534 (patch)
tree07b7e6d0f73e14149d951e5d2a2c97d7de5f90e5 /win
parent6f74f207dda447f590c07d19f73d5da1a5796eb6 (diff)
downloadtcl-a303a1324a67c192bcaa76b3e08c81352d2bf534.zip
tcl-a303a1324a67c192bcaa76b3e08c81352d2bf534.tar.gz
tcl-a303a1324a67c192bcaa76b3e08c81352d2bf534.tar.bz2
Remove dead code
Diffstat (limited to 'win')
-rw-r--r--win/tclWinConsole.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 7ca94ce..1b8699c 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -223,7 +223,6 @@ static DWORD WriteConsoleChars(HANDLE hConsole,
RingSizeT *nCharsWritten);
static void RingBufferInit(RingBuffer *ringPtr, RingSizeT capacity);
static void RingBufferClear(RingBuffer *ringPtr);
-static char * RingBufferSegment(const RingBuffer *ringPtr, RingSizeT *lenPtr);
static RingSizeT RingBufferIn(RingBuffer *ringPtr, const char *srcPtr,
RingSizeT srcLen, int partialCopyOk);
static RingSizeT RingBufferOut(RingBuffer *ringPtr, char *dstPtr,
@@ -486,36 +485,6 @@ RingBufferOut(RingBuffer *ringPtr,
return dstCapacity;
}
-/*
- *------------------------------------------------------------------------
- *
- * RingBufferSegment --
- *
- * Returns a pointer to the leading data segment in the ring buffer.
- *
- * Results:
- * Pointer to start of segment.
- *
- * Side effects:
- * None.
- *
- *------------------------------------------------------------------------
- */
- static inline char *
- RingBufferSegment(const RingBuffer *ringPtr, RingSizeT *lengthPtr)
-{
- RINGBUFFER_ASSERT(ringPtr);
- if (ringPtr->length <= (ringPtr->capacity - ringPtr->start)) {
- /* No content wrap around. */
- *lengthPtr = ringPtr->length;
- }
- else {
- /* Content wraps around so lead segment stretches to end of buffer */
- *lengthPtr = ringPtr->capacity - ringPtr->start;
- }
- return *lengthPtr == 0 ? NULL : ringPtr->start + ringPtr->bufPtr;
-}
-
#ifndef NDEBUG
static int
RingBufferCheck(const RingBuffer *ringPtr)