]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.cpp
Use vectors for storage in Poller
[libs/core.git] / source / io / base.cpp
index da2b5a98cb1c8db3f211b292137783b0c19d4e7d..9c2b40a1f2a9460eee16a34f6e0b08aab245786c 100644 (file)
@@ -31,7 +31,7 @@ bool Base::getline(string &line)
        if(eof_flag)
                return false;
 
-       while(1)
+       while(!eof())
        {
                int c = get();
                if(c==-1 || c=='\n')
@@ -59,11 +59,6 @@ void Base::set_eof()
        }
 }
 
-const Handle &Base::get_handle(Mode)
-{
-       throw logic_error("Base::get_handle");
-}
-
 
 Base::Synchronize::Synchronize(Base &i):
        io(i)