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 /include | |
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 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 271cec3a09..dbf8f9928b 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -603,14 +603,6 @@ error_code openFileForWrite(const Twine &Name, int &ResultFD, OpenFlags Flags, error_code openFileForRead(const Twine &Name, int &ResultFD); -/// @brief Are \a path's first bytes \a magic? -/// -/// @param path Input path. -/// @param magic Byte sequence to compare \a path's first len(magic) bytes to. -/// @returns errc::success if result has been successfully set, otherwise a -/// platform specific error_code. -error_code has_magic(const Twine &path, const Twine &magic, bool &result); - /// @brief Get \a path's first \a len bytes. /// /// @param path Input path. |