Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5157)

Issue 27100043: Remove unused variable kPathSeparatorString

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by Mark Mentovai
Modified:
7 years, 8 months ago
Reviewers:
yangge1987, wan
CC:
googletestframework_googlegroups.com
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Remove unused variable kPathSeparatorString. Consumers of kPathSeparatorString were removed in gtest r370. With warnings cranked up, the following is produced: gtest/src/gtest-filepath.cc:87:12: error: unused variable 'kPathSeparatorString' [-Werror,-Wunused-const-variable] const char kPathSeparatorString[] = "/"; ^ This variable is unused and unnecessary.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M src/gtest-filepath.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 3
Mark Mentovai
10 years, 5 months ago (2013-11-16 00:43:19 UTC) #1
wan
Corey, Would you be able to take this one? Thanks. On Fri, Nov 15, 2013 ...
10 years, 5 months ago (2013-11-16 00:49:40 UTC) #2
yangge1987_gmail.com
7 years, 8 months ago (2016-08-09 06:44:25 UTC) #3
is this patch ever merged?

The google test framework hasn't been updated since 2013. Is this project 
abandoned?

On Friday, November 15, 2013 at 4:49:19 PM UTC-8, Zhanyong Wan wrote:
>
> Corey,
>
> Would you be able to take this one?  Thanks.
>
>
> On Fri, Nov 15, 2013 at 4:43 PM, <ma...@chromium.org <javascript:>> wrote:
>
>> Reviewers: wan,
>>
>> Description:
>> Remove unused variable kPathSeparatorString.
>>
>> Consumers of kPathSeparatorString were removed in gtest r370. With
>> warnings
>> cranked up, the following is produced:
>>
>> gtest/src/gtest-filepath.cc:87:12: error: unused variable
>> 'kPathSeparatorString' [-Werror,-Wunused-const-variable]
>> const char kPathSeparatorString[] = "/";
>>            ^
>>
>> This variable is unused and unnecessary.
>>
>> Please review this at https://codereview.appspot.com/27100043/
>>
>> Affected files (+0, -2 lines):
>>   M     src/gtest-filepath.cc
>>
>>
>> Index: src/gtest-filepath.cc
>> ===================================================================
>> --- src/gtest-filepath.cc       (revision 664)
>> +++ src/gtest-filepath.cc       (working copy)
>> @@ -70,7 +70,6 @@
>>  // of them.
>>  const char kPathSeparator = '\\';
>>  const char kAlternatePathSeparator = '/';
>> -const char kPathSeparatorString[] = "\\";
>>  const char kAlternatePathSeparatorString[] = "/";
>>  # if GTEST_OS_WINDOWS_MOBILE
>>  // Windows CE doesn't have a current directory. You should not use
>> @@ -84,7 +83,6 @@
>>  # endif  // GTEST_OS_WINDOWS_MOBILE
>>  #else
>>  const char kPathSeparator = '/';
>> -const char kPathSeparatorString[] = "/";
>>  const char kCurrentDirectoryString[] = "./";
>>  #endif  // GTEST_OS_WINDOWS
>>
>>
>>
>>
>
>
> -- 
> Zhanyong 
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b