From 145a7ca423cf3a3249ca0329be37dc447f9ce855 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 29 Dec 2009 21:43:25 +0000 Subject: Update gmock and gtest. (Hoping to pick up a clang-related bug fix.) Review URL: http://codereview.chromium.org/521012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35352 0039d316-1c4b-4281-b951-d872f2087c98 --- testing/gmock/src/gmock-matchers.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'testing/gmock/src/gmock-matchers.cc') diff --git a/testing/gmock/src/gmock-matchers.cc b/testing/gmock/src/gmock-matchers.cc index 79b525d..0abca70 100644 --- a/testing/gmock/src/gmock-matchers.cc +++ b/testing/gmock/src/gmock-matchers.cc @@ -83,18 +83,6 @@ int GetParamIndex(const char* param_names[], const string& param_name) { return kInvalidInterpolation; } -// If *pstr starts with the given prefix, modifies *pstr to be right -// past the prefix and returns true; otherwise leaves *pstr unchanged -// and returns false. None of pstr, *pstr, and prefix can be NULL. -bool SkipPrefix(const char* prefix, const char** pstr) { - const size_t prefix_len = strlen(prefix); - if (strncmp(*pstr, prefix, prefix_len) == 0) { - *pstr += prefix_len; - return true; - } - return false; -} - // Helper function used by ValidateMatcherDescription() to format // error messages. string FormatMatcherDescriptionSyntaxError(const char* description, -- cgit v1.1