Author: nico
Date: Mon Jun 2 07:00:08 2014
New Revision: 210019
URL: http://llvm.org/viewvc/llvm-project?rev=210019&view=rev
Log:
Remove unused code in a libc++ test.
Other tests in this directory use this type, so it's probably copypasta from
there.
(test_buf only forwards to the superclass in all tests where it's used though,
so I wonder if it can be replaced with just using filebuf / wfilebuf
everywhere?)
Modified:
libcxx/trunk/test/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp
Modified:
libcxx/trunk/test/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp?rev=210019&r1=210018&r2=210019&view=diff
==============================================================================
---
libcxx/trunk/test/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp
(original)
+++
libcxx/trunk/test/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp
Mon Jun 2 07:00:08 2014
@@ -19,23 +19,6 @@
#include <fstream>
#include <cassert>
-template <class CharT>
-struct test_buf
- : public std::basic_filebuf<CharT>
-{
- typedef std::basic_filebuf<CharT> base;
- typedef typename base::char_type char_type;
- typedef typename base::int_type int_type;
- typedef typename base::pos_type pos_type;
-
- char_type* eback() const {return base::eback();}
- char_type* gptr() const {return base::gptr();}
- char_type* egptr() const {return base::egptr();}
- void gbump(int n) {base::gbump(n);}
-
- virtual int_type underflow() {return base::underflow();}
-};
-
int main()
{
{
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits