Commit 1b7a3c31 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed useless boundLoad method from Array

(This version is implemented in Object)
parent 323dd294
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,11 +135,11 @@ class Array : public virtual Object
       */
      bool boundLoad( File& file );

      bool boundLoad( const String& fileName );
      using Object::save;

      using Object::load;

      using Object::save;
      using Object::boundLoad;

      ~Array();

+19 −42
Original line number Diff line number Diff line
@@ -546,29 +546,6 @@ boundLoad( File& file )
   return true;
}

template< typename Element,
          typename Device,
          typename Index >
bool
Array< Element, Device, Index >::
boundLoad( const String& fileName )
{
   File file;
   if( ! file. open( fileName, IOMode::read ) )
   {
      std::cerr << "I am not bale to open the file " << fileName << " for reading." << std::endl;
      return false;
   }
   if( ! this->boundLoad( file ) )
      return false;
   if( ! file. close() )
   {
      std::cerr << "An error occurred when I was closing the file " << fileName << "." << std::endl;
      return false;
   }
   return true;
}

template< typename Element,
          typename Device,
          typename Index >