]> granicus.if.org Git - llvm/commitdiff
[lit] Remove unused variable in googletest format
authorBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:15:33 +0000 (01:15 +0000)
committerBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:15:33 +0000 (01:15 +0000)
Summary: `prefix` is written to but never read.

Reviewers: echristo, delcypher, beanz, ddunbar

Subscribers: llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D25408

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283706 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/formats/googletest.py

index 0dde12efa5363e0963cf96cb0de6e7560e4d5986..fddb2f5f684e29cd0dabf1ef7375a4a26023dd9c 100644 (file)
@@ -52,7 +52,6 @@ class GoogleTest(TestFormat):
                 # handle it here in case upstream googletest is being used.
                 continue
 
-            prefix = ''
             index = 0
             while ln[index*2:index*2+2] == '  ':
                 index += 1