diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 21:53:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 21:53:22 +0000 |
commit | c6d63a3b0da4ad49e4c29e2d4ae148d76dfe38ec (patch) | |
tree | 9b6c5e4fae4560c8fb780ed778a5f2db634be50b /unittests/Support/Path.cpp | |
parent | a2d36a20fa0803a596a1b3194abd52fa92f830cc (diff) | |
download | llvm-c6d63a3b0da4ad49e4c29e2d4ae148d76dfe38ec.tar.gz llvm-c6d63a3b0da4ad49e4c29e2d4ae148d76dfe38ec.tar.bz2 llvm-c6d63a3b0da4ad49e4c29e2d4ae148d76dfe38ec.tar.xz |
Remove unused has_magic.
This will allow inlining get_magic, which should in turn fix one of the mingw
build problems after the switch to std::error_code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/Path.cpp')
-rw-r--r-- | unittests/Support/Path.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index d116acae2a..f5fb81539b 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -539,9 +539,6 @@ TEST_F(FileSystemTest, Magic) { StringRef magic(i->magic_str, i->magic_str_len); file << magic; file.close(); - bool res = false; - ASSERT_NO_ERROR(fs::has_magic(file_pathname.c_str(), magic, res)); - EXPECT_TRUE(res); EXPECT_EQ(i->magic, fs::identify_magic(magic)); ASSERT_NO_ERROR(fs::remove(Twine(file_pathname))); } |