gtx: remove unused variable numBuffBytes
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 29 May 2012 01:49:46 +0000 (21:49 -0400)
committerDerrick Brashear <shadow@dementix.org>
Tue, 29 May 2012 03:07:31 +0000 (20:07 -0700)
Commit 9efc255a makes the numBuffBytes variable unnecessary.
Remove it to clear up an "unused but set" warning.

Change-Id: Ifc50c40542e008d76007c76a9ce146fe6ebab4be
Reviewed-on: http://gerrit.openafs.org/7504
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/gtx/textcb.c

index 378d6fa..21c93ca 100644 (file)
@@ -91,7 +91,6 @@ gator_textcb_Create(int a_maxEntriesStored, int a_maxCharsPerEntry)
     struct gator_textcb_entry *newEntries;     /*Ptr to new text entries */
     struct gator_textcb_hdr *newHdr;   /*Ptr to new text hdr */
     int bytesToAllocate;       /*Num bytes to allocate */
-    int numBuffBytes;          /*Num bytes in text buffer */
     int curr_ent_num;          /*Current entry number */
     struct gator_textcb_entry *curr_ent;       /*Ptr to current entry */
     char *curr_buff;           /*Ptr to current buff pos */
@@ -105,7 +104,7 @@ gator_textcb_Create(int a_maxEntriesStored, int a_maxCharsPerEntry)
      * always null-terminate them.  We also need to allocate the blank
      * line buffer.
      */
-    numBuffBytes = bytesToAllocate =
+    bytesToAllocate =
        a_maxEntriesStored * (a_maxCharsPerEntry + 1);
     if (gator_textcb_debug)
        fprintf(stderr, "[%s] Allocating %d bytes for the text buffer\n", rn,