[PATCH] D25408: [lit] Remove unused variable in googletest format

Brian Gesiak via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 13:51:32 PDT 2016


modocache created this revision.
modocache added reviewers: ddunbar, echristo, delcypher, beanz.
modocache added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

`prefix` is written to but never read.


https://reviews.llvm.org/D25408

Files:
  utils/lit/lit/formats/googletest.py


Index: utils/lit/lit/formats/googletest.py
===================================================================
--- utils/lit/lit/formats/googletest.py
+++ utils/lit/lit/formats/googletest.py
@@ -52,7 +52,6 @@
                 # handle it here in case upstream googletest is being used.
                 continue
 
-            prefix = ''
             index = 0
             while ln[index*2:index*2+2] == '  ':
                 index += 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25408.74079.patch
Type: text/x-patch
Size: 440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161009/5ac08eb7/attachment.bin>


More information about the llvm-commits mailing list